Has anybody have any idea what is causing the above error the line of code is
XlObj.Run "sgc"
“sgc” is a macro which I have in my Excel Personal.xls workbook. I have noticed that when the code opens the spreadsheet Personal.xls is not there it is just empty but when you open the spreadsheet manually the macro is available any ideas?
Thank you in advance
XlObj.Run "sgc"
“sgc” is a macro which I have in my Excel Personal.xls workbook. I have noticed that when the code opens the spreadsheet Personal.xls is not there it is just empty but when you open the spreadsheet manually the macro is available any ideas?
Thank you in advance