Hi,
I've been having a lot of trouble getting VC to run a macro in an MS Access *.accdb file, so I set up a very simple test file. In this file, there's a single query (pass-through to an Oracle database that selects 4 rows). There's a VBA function that outputs that query to an Excel file, and there's a macro that executes this VBA function. When I run the macro manually by opening the accdb file and double-clicking it, it works perfectly - the Excel file appears. I have a task set up in VC to run this macro, using the same credentials as I'm logged onto the computer with. VC says it completed successfully (exit code = 0), but there's no Excel file, which tells me that it didn't run. Any ideas what could be going on?
Thanks.