Hi.
I may be posting this in the wrong section, if I am I apologise...
I am using some VBscript to open an excel spreadsheet, run a macro, save the spreadsheet and close excel.
The problem I am having is for some reason the Addins used for the functions in the spreadsheet don’t appear to be enabled. I know this as some of the functions show up as #NAME? . The account that’s running the script, the admin account and local admin account all have the addin's enabled in excel and its not a macro security problem as the macros run ok.
If I run the spreadsheet normally by just opening it in excel it all works fine. Its just when I use the VBScript it happens.
The code im using is below.
Any help appreciated.
Thanks
Tristen
I may be posting this in the wrong section, if I am I apologise...
I am using some VBscript to open an excel spreadsheet, run a macro, save the spreadsheet and close excel.
The problem I am having is for some reason the Addins used for the functions in the spreadsheet don’t appear to be enabled. I know this as some of the functions show up as #NAME? . The account that’s running the script, the admin account and local admin account all have the addin's enabled in excel and its not a macro security problem as the macros run ok.
If I run the spreadsheet normally by just opening it in excel it all works fine. Its just when I use the VBScript it happens.
The code im using is below.
Code:
Dim xlObj
Set xlObj = CreateObject("Excel.application")
xlObj.Workbooks.Open "Path to my spreadsheet.xls"
xlObj.Run "Module1.Auto_Open"
xlObj.ActiveWorkbook.Saved = True
xlObj.ActiveWindow.Close
xlObj.Quit
Thanks
Tristen
Comment