+ Reply to Thread
Results 1 to 2 of 2

Getting a Macro to run in a different XLS file

  1. #1
    Michele
    Guest

    Getting a Macro to run in a different XLS file

    I've created a formatting macro that runs beautifully called "Export Macro"
    located in the file "Macro 2006.xls". I want to make "Export Macro" run in a
    separate file called "Presubmission.xls". This file is generated by Access,
    located in the same spot with the same title (for grins, let's say the path
    is: \\svr1\Common\MI\Frustration\Presubmission.xls)

    Ultimately, I want to link the "Export Macro" to a command button in "Macro
    2006.xls", which tells it to go the "Presubmission.xls" and run "Export
    Macro", thereby formatting my report.

    What is the code I need to have to accomplish this? I've tried a few
    different things, but am still somewhat new a macro writing.

    Any help would be appreciated!

    Thank you,
    Michele

  2. #2
    Tom Ogilvy
    Guest

    Re: Getting a Macro to run in a different XLS file

    Look at Application.Run

    --
    Regards,
    Tom Ogilvy

    "Michele" <[email protected]> wrote in message
    news:[email protected]...
    > I've created a formatting macro that runs beautifully called "Export

    Macro"
    > located in the file "Macro 2006.xls". I want to make "Export Macro" run

    in a
    > separate file called "Presubmission.xls". This file is generated by

    Access,
    > located in the same spot with the same title (for grins, let's say the

    path
    > is: \\svr1\Common\MI\Frustration\Presubmission.xls)
    >
    > Ultimately, I want to link the "Export Macro" to a command button in

    "Macro
    > 2006.xls", which tells it to go the "Presubmission.xls" and run "Export
    > Macro", thereby formatting my report.
    >
    > What is the code I need to have to accomplish this? I've tried a few
    > different things, but am still somewhat new a macro writing.
    >
    > Any help would be appreciated!
    >
    > Thank you,
    > Michele




+ 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