From within Access (XP) I open an Excel workbook and run a macro in that workbook. The last action the Excel macro does is to save and close that workbook. My problem is the VBA code in Access then fails instead of running the next line of code in Access.
I trigger the Excel macro with this line of code in Access:
How do I get Access to continue running after the Excel macro has closed the workbook?
I want to keep Excel open for other uses later in the code so only the workbook is closed.
Both the Access DB and the Excel workbook are on the local C: drive and not being run over a network. Permissions are not an issue.
Access gives me the error code 440 Method ‘Run’ of object’_Application’ failed.
Thanks for the help.
Tom
I trigger the Excel macro with this line of code in Access:
Code:
appExcel.Run (strNameOfExcelMacro)
How do I get Access to continue running after the Excel macro has closed the workbook?
I want to keep Excel open for other uses later in the code so only the workbook is closed.
Both the Access DB and the Excel workbook are on the local C: drive and not being run over a network. Permissions are not an issue.
Access gives me the error code 440 Method ‘Run’ of object’_Application’ failed.
Thanks for the help.
Tom