F
freekrill
Hi,
I posted this question a while ago, but the responses I got wer
unfortunately beyond my comprehension as a self-taught VBA'er!
My problem was that I wanted to check if a file was open and if no
open it before working on it.
I developed the following code which seems to work OK.
On error Goto Line1
Windows("a").Activate
Goto Line2
Line 1:
Workbooks.Open Filename:="C:\A.xls"
Line2:
.....
The problem I have is that if I need to check on more than one workboo
in one sub (eg "B.xls"), I get an error message "subscript out o
range" for the line, Windows....Activate
Any help would be appreciated
Thanks
fre
I posted this question a while ago, but the responses I got wer
unfortunately beyond my comprehension as a self-taught VBA'er!
My problem was that I wanted to check if a file was open and if no
open it before working on it.
I developed the following code which seems to work OK.
On error Goto Line1
Windows("a").Activate
Goto Line2
Line 1:
Workbooks.Open Filename:="C:\A.xls"
Line2:
.....
The problem I have is that if I need to check on more than one workboo
in one sub (eg "B.xls"), I get an error message "subscript out o
range" for the line, Windows....Activate
Any help would be appreciated
Thanks
fre