On error... errors
Posted by Brian Charles on February 14, 2000 10:07 AM
I am using the on Error statement as below:
Dim codelist as Variant
Codelist=Array(10,21,29,30,40)
For each code in codelist
On error GOTO D:
WIndows(code).activate
(A buch of code follows)
D: Next code
On error goto 0
Prior to this code running, any number of windows are open
that have names that are within the codelist. THe problem is
that when the code has an error due to attempting to
open a window not listed, it works fine on the first error
but stops on the subsequent error.
ie: codes(21,29,30) are open, macro tries to open
code 10, skips over fine. THen tries to open code 40,
and grinds to a halt.
Help if you can.....