S
Super Slueth
Hi
I'm trying to use a variable in the following code but i get an error.
Subscript out of range
I am runing a For/Next loop and need to change the file name for every
loop
Dim MyString AS String
Dim MyFileName AS String
MyString = C:\path\filename
MyFileName = somefilename
Windows(MyString).Activate
Sheets(MyFileNAme).Select
Any suggestion on how to do this correctly.
Many thanks
I'm trying to use a variable in the following code but i get an error.
Subscript out of range
I am runing a For/Next loop and need to change the file name for every
loop
Dim MyString AS String
Dim MyFileName AS String
MyString = C:\path\filename
MyFileName = somefilename
Windows(MyString).Activate
Sheets(MyFileNAme).Select
Any suggestion on how to do this correctly.
Many thanks