S
Sysygy
I've written a program that works fine on my laptop but when I try to run it
on my desktop I get a subscript out of range error when the code tries to
activate a workbook, see below:
Workbooks("xyz").Worksheets("Log").Activate
In order to overcome the problem on the desktop I have to re-write the code
as follows:
Workbooks("xyz.xls").Worksheets("Log").Activate
I'm using xl2003 with identical settings. The desktop is running XP SP2 Home
and the laptop is running XP SP1 Prof.
Does anyone have any ideas why this happens?
on my desktop I get a subscript out of range error when the code tries to
activate a workbook, see below:
Workbooks("xyz").Worksheets("Log").Activate
In order to overcome the problem on the desktop I have to re-write the code
as follows:
Workbooks("xyz.xls").Worksheets("Log").Activate
I'm using xl2003 with identical settings. The desktop is running XP SP2 Home
and the laptop is running XP SP1 Prof.
Does anyone have any ideas why this happens?