S
SeanEvans
I am trying to switch between two different instances of excel (the
show up as seperate spreadsheets on the taskbar) but the code I hav
been given to try doesn't work -
Dim OtherSheet As Object ' Variable to hold reference
On Error Resume Next
Set OtherSheet = GetObject(, "Excel.Application")
Set OtherSheet = GetObject("U:\Decision Support\VB Testing\Fil
swap2.xls").Activate ' <<<< FULL FILE PATH HERE
OtherSheet.Application.Visible = True
Set OtherSheet = Nothing ' Release reference to the application an
spreadsheet
It just throws up an error 424 Object Required at the second get objec
line. Can anyone point me in the right direction
show up as seperate spreadsheets on the taskbar) but the code I hav
been given to try doesn't work -
Dim OtherSheet As Object ' Variable to hold reference
On Error Resume Next
Set OtherSheet = GetObject(, "Excel.Application")
Set OtherSheet = GetObject("U:\Decision Support\VB Testing\Fil
swap2.xls").Activate ' <<<< FULL FILE PATH HERE
OtherSheet.Application.Visible = True
Set OtherSheet = Nothing ' Release reference to the application an
spreadsheet
It just throws up an error 424 Object Required at the second get objec
line. Can anyone point me in the right direction