+ Reply to Thread
Results 1 to 4 of 4

Running the same macro to multiple workbooks

  1. #1
    Registered User
    Join Date
    06-29-2005
    Posts
    46

    Running the same macro to multiple workbooks

    Hi, I have 16 workbooks that a macro needs to be applied to. Is there an easy way to do this without copying the macro into each workbook individually? Thanks in advance.
    Last edited by Raman325; 07-01-2005 at 03:04 AM.

  2. #2
    Forum Contributor
    Join Date
    03-24-2004
    Location
    Edam Netherlands
    Posts
    181
    Write teh macro in a master WB and from there open the other WB's
    and run the macro on the active WB.

  3. #3
    Norman Jones
    Guest

    Re: Running the same macro to multiple workbooks

    Hi Raman,

    (1) Put the macro in your Personal.xls workbook. It is then available to any
    open workbook.

    If you do not have a Personal.xls workbook, record a dummy macro, and select
    the 'Personal Macro Workbook' option from the 'Store Macro In' dropdown.
    This will create the Personal workbook for you. It will open hidden each
    time that you open Excel. The dummy macro can be deleted.

    OR,

    (2) Store the macro in a new workbook and save the workbook as an Addin.

    To do this, select 'Microsoft Excel Addin (*.xla)' {the last option) in
    'Save asType' dropdown. Then,

    Tools | Add-Ins | Browse | select your file | Ok

    ---
    Regards,
    Norman








    "Raman325" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi, I have 16 workbooks that a macro needs to be applied to. Is there an
    > easy way to do this without copying the macro into each workbook
    > individually? Thanks in advance.
    >
    >
    > --
    > Raman325
    > ------------------------------------------------------------------------
    > Raman325's Profile:
    > http://www.excelforum.com/member.php...o&userid=24748
    > View this thread: http://www.excelforum.com/showthread...hreadid=383795
    >




  4. #4
    Registered User
    Join Date
    06-29-2005
    Posts
    46
    Thanks, I'll give it a try.

+ 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