G
Guest
I am trying to run a macro to format the exported spreadsheet. Here is my code
XL.Visible = False
'XL.Workbooks.Open "C:\Documents and Settings\U245003\My
Documents\Automation\Macros.XLS" 'this is where my macros are stored.
'XL.Workbooks.Open '"C:\Documents and Settings\U245003\My
Documents\Automation\Results\format.xls"
'XL.Run "Clean_TMS_WF_Report"
'XL.Quit
'XL.Visible = False
this does not work because.
after opening macros.xls, it is closing macros.xls before opening format.xls.
all my macros are saved in macros.xls so that all users can use this. since
it is nor in personal.xls, i have to open macro.xls before running the macro.
when i run this code i get this error "macro not found"
Please advice
and thanks a lot for all your help. I really appreciate this.
XL.Visible = False
'XL.Workbooks.Open "C:\Documents and Settings\U245003\My
Documents\Automation\Macros.XLS" 'this is where my macros are stored.
'XL.Workbooks.Open '"C:\Documents and Settings\U245003\My
Documents\Automation\Results\format.xls"
'XL.Run "Clean_TMS_WF_Report"
'XL.Quit
'XL.Visible = False
this does not work because.
after opening macros.xls, it is closing macros.xls before opening format.xls.
all my macros are saved in macros.xls so that all users can use this. since
it is nor in personal.xls, i have to open macro.xls before running the macro.
when i run this code i get this error "macro not found"
Please advice
and thanks a lot for all your help. I really appreciate this.