Load a File Error 9
Hi
What about the extension (with/without)
Also you could do something like:
Dim Wbk as workbook
Set Wbk= Workbooks.Open ( .... your file ....) ''' returns the opened
book into a variable
Wbk.Windows(1).Activate
--
Regards,
Sébastien
<http://www.ondemandanalysis.com
"Mike H." wrote:
After loading a file when I issue the command
Windows(TheWb).Activate
where TheWB is the name of the file (with or without the path, doesn't
matter), I am getting an error: "Runtime Error 9, Subscript out of range".
What do I need to change?
|