Hi,
I have a form in Access that transfers a query using the DoCmd.TransferSpreadsheet method to a predefined Excel spreadsheet. After the DoCmd, I then define an Excel application object to open the workbook automatically that received the transfer. Within the workbook, I have an Autpen macro that I want to run whenever the workbook opens. Problem is, the Excel macro doesn't automatically execute; I'm guessing that the dailog box that would otherwise come up during the opening of a workbook, that asks users whether or not they want to enable macros, is automatically choosing to disable my macro. What can I do to get around this?
Thanks for your help.
Shaun
I have a form in Access that transfers a query using the DoCmd.TransferSpreadsheet method to a predefined Excel spreadsheet. After the DoCmd, I then define an Excel application object to open the workbook automatically that received the transfer. Within the workbook, I have an Autpen macro that I want to run whenever the workbook opens. Problem is, the Excel macro doesn't automatically execute; I'm guessing that the dailog box that would otherwise come up during the opening of a workbook, that asks users whether or not they want to enable macros, is automatically choosing to disable my macro. What can I do to get around this?
Thanks for your help.
Shaun