Use the .xls extension in the file name. E.g.,
Windows("Book1.xls").Activate
instead of
Windows("Book1").Activate
--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)
"Mike H." wrote in message
...
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?