How to make MS Excel macros to run across all sheets


MS Excel macros can boost your productivity, saving you a lot of the time you spend on doing boring tasks, such as formatting or printing. If you didn’t know by now, find out how you can use a macro across all worksheets:

personal sheet macro

After you choose Tools, Macros, Record New Macro, in the dialog box, at “Store macro in:“, go and switch from the default This workbook, to Personal Macro Workbook.

This will allow you to use the macro in whatever worksheet (or workbook) you need, without having to open the file you recorded it in every time. If you define a shortcut key for it (see picture), you’ll access it very quickly. If you feel like doing so, you can even assign a toolbar button to your macro. In case you want to launch the macro only once for all the sheets in a workbook, just select all worksheets (press Shift and click on each sheet name tab), then launch the macro. It will run in all selected worksheets.

Attention! Don’t forget to save the Personal Macro Workbook when prompted, otherwise you’ll lose your macro.

This entry was posted in Microsoft Office and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

5 Comments

  1. Ameer
    Posted September 1, 2007 at 12:23 pm | Permalink

    pls send me hoe to do macros in msexcel

  2. Posted November 23, 2007 at 5:45 am | Permalink

    tips for creating macro coadings

  3. ALVIN
    Posted April 29, 2008 at 12:22 am | Permalink

    Anyone can please advise how to create a single macro to run all the macros in different worksheets at once. When i click on the button of a macro, the macro1 should run and then Macro2 in another workseet and then Macro3 in a different worksheet.

  4. Simonne
    Posted April 29, 2008 at 7:23 am | Permalink

    Hey Alvin,

    Define a new macro and store it in the Personal Macro Workbook. This new macro should consist of all other macros that you need to run in separate sheets. I never tried this, but I think it should work.

  5. Jon Song
    Posted May 5, 2008 at 5:05 pm | Permalink

    I recorded a macro that changes the footer for a particular sheet. Then, I selected multiple sheets and ran it. I found that the macro only applies to the active sheet, not all selected sheets. Any suggestions?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Disclosure: I am compensated for my reviews. Click here for details.

  • Get your FREE tips and tricks:

    Delivered by FeedBurner

  • Follow All Tips and Tricks:

  • Learn & Master Photography

    Headway — The Drag & Drop Theme For WordPress

    Thesis Theme for WordPress:  Options Galore and a Helpful Support Community

    Catalyst Theme - WordPress Accelerated