Hi guys, I am stumped on this one.
Windows Server 2008, Office 2010
I have some vba code that exports a table to an Excel spreadsheet and then does some formatting (basically running Excel macro statements stored in an Access vba module). It normally runs fine but we are trying to automate it.
We scheduled it to run via task scheduler (calling the Access db and the macro) and it will run fine UNLESS we choose the option to run whether logged off or not. When using that selection, the Access db is able to export the spreadsheet, but hangs or goes no further with the formatting. When run with the "only run while logged in" selection, everything runs fine. It's like Excel won't execute the macro statements.
Both instances are running under the domain admin which is also a local administrator.
For some reason the security context is different when "run when logged on or off".
Any thoughts on the differences or why this is happening?
Windows Server 2008, Office 2010
I have some vba code that exports a table to an Excel spreadsheet and then does some formatting (basically running Excel macro statements stored in an Access vba module). It normally runs fine but we are trying to automate it.
We scheduled it to run via task scheduler (calling the Access db and the macro) and it will run fine UNLESS we choose the option to run whether logged off or not. When using that selection, the Access db is able to export the spreadsheet, but hangs or goes no further with the formatting. When run with the "only run while logged in" selection, everything runs fine. It's like Excel won't execute the macro statements.
Both instances are running under the domain admin which is also a local administrator.
For some reason the security context is different when "run when logged on or off".
Any thoughts on the differences or why this is happening?