I have some code that i am trying to loop through. Dont pay attention to the counter or any of that, I just need help with why the error is handled ok the first time through, but on the second time it wont go to A:?? On the second loop through the error box pops and halts the code, why doesnt the goto A: work for the second loop through? The AppActivate statement errors because the PRINT box can take several seconds to display in IE before i can move on.
do until counter = 100
on error goto A:
AppActivate("PRINT")
A: (wait for 2 seconds)
counter = counter +1
loop
do until counter = 100
on error goto A:
AppActivate("PRINT")
A: (wait for 2 seconds)
counter = counter +1
loop