I'm exporting a report from access to excel with the DoCmd.OutputTo .. command. I would like to automatically add an existing macro to the generated excel file and execute it using VBA. Can somebody help ?
Thanks
I'm exporting a report from access to excel with the DoCmd.OutputTo .. command. I would like to automatically add an existing macro to the generated excel file and execute it using VBA. Can somebody help ?
Thanks
Hi,
This possibility exists and is well described by Chip
http://www.cpearson.com/excel/vbe.htm
As an alternative, you could open the worksheet which contains your macro before importing your access data, to avoid the additional code ...
HTH
Carim
![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks