Thanks for the help in exporting and uploading the macros and screenshots. Good to know for future reference.
There are 3 macros/screenshots:
- _Run this macro (the master macro I run that runs 2 macros in succession)
- Counter (step 1 of the master macro)
- Color Number (step 2 of the master macro)
The counter simply loads the next web page (product ID) by editing the current URL, copying the product ID within the URL (i.e. 20,258), adding 1 (making the new URL 20,259), and pasting the new ID over the old.
When the web page loads, Color Number is run. This just edits a field on the web page. After the field is edited, the cycle repeats itself (i.e. load next page, edit page, load next page, edit page, etc.)
I can't provide the website without getting into trouble and it's locked behind a login/password anyway.
I'd like to add a Check at the beginning of the master macro to make sure that the web page hasn't error'd. While errors are rare, they do happen and that halts the macro. I was hoping an If/Then action would suffice at the top of the master macro. If the page error'd, go back one page (command + left arrow). Else, run Counter followed by Color Number.
Hopefully that makes sense. In addition to the macros and screenshots, I've included a screenshot of the error that pops up. I'm thinking the Check could search the web page for "Application Error" in order to see the web page error'd or not.
_Run This Macro.kmmacros (2.5 KB)
Counter.kmmacros (6.4 KB)
Field: Color Number.kmmacros (7.1 KB)