+ Reply to Thread
Results 1 to 2 of 2

Automatically add and execute vba macro

Hybrid View

ANTO007 Automatically add and execute... 11-27-2006, 04:26 PM
Carim Hi, This possibility... 11-27-2006, 04:41 PM
  1. #1
    Registered User
    Join Date
    11-27-2006
    Posts
    1

    Automatically add and execute vba macro

    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

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1