Hello,
I created a macro which automatically starts when the excel file is opened. I need to be able to start this macro from within Extra! and so I created a macro with the following code to do this:
I can see the window open, but the Excel macro doesn't start. When I open the Excel file myself, the macro runs every time.
I wasn't sure if this should be in the Attachmate forum or here.
Does anyone have any suggestions?
I created a macro which automatically starts when the excel file is opened. I need to be able to start this macro from within Extra! and so I created a macro with the following code to do this:
Code:
set xl = CreateObject("Excel.Application")
If dir("H:\My documents\Comptes\INNS.xls") > "" then
set wb = xl.Workbooks.Open("H:\My documents\Comptes\INNS.xls")
xl.visible = true
Else
msgbox ("Make sure you have a copy of INNS.xls in your Documents folder.")
xl.Quit
End if
I can see the window open, but the Excel macro doesn't start. When I open the Excel file myself, the macro runs every time.
I wasn't sure if this should be in the Attachmate forum or here.
Does anyone have any suggestions?