We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is a Macro?

By Derek Schauland
Updated: May 16, 2024

A macro is a series of keyboard strokes recorded by an application. These keystrokes often represent commands within a piece of software which are combined to reduce the work needed to perform the functions. Macros are then stored within the application to allow for repeated use.

When recording a macro within an application like Microsoft Word®, the keyboard strokes or commands get bound to a shortcut key or stored within a toolbar making them accessible via the mouse. Then the saved sequence of commands can be executed simply by clicking a tool bar button or pressing the assigned keys.

Suppose a Microsoft Word® user was looking for a quick way to save a document and then exit Word®. This could be recorded within a macro to combine the save action and the exit action as follows using Microsoft Word® 2007:

    1.Choose the View tab from the office ribbon
    2.Select the Macros object from the Macros group on the right end of the ribbon
    3.Select record macro from the fly out menu

Once the record macro object has been clicked, a dialog box appears which allows the user to provide a name for it and to assign the toolbar button or keyboard shortcut that will trigger it. Usually when assigning a keyboard shortcut for a macro, the Ctrl, Shift, or Alt keys are pressed in combination with the key being assigned. The modifier keys, Ctrl, Shift, and Alt, can also be pressed together in any combination with a key. The idea is to keep the macro keyboard strokes as simple as possible to allow for easily repeated use.

    4.Enter a name for the macro
    5.Assign the keyboard strokes or tool bar selection that will trigger the macro, for this example choose Ctrl + Alt + X
    6.Click OK

Then the actions which will make up the macro need to be performed so they can be saved. In the example provided here, the save menu button near the top of the Microsoft Word® 2007 window, displayed as a small disk, would be clicked followed by the Office® Logo button, also at the top left. When the Word® menu displayed the Exit Word object would be selected to close the application or the close option to close the currently active document.

After the actions have been performed, the user would select the stop recording option from the macros group on the view menu of the Office ribbon. This would prevent further actions from being recorded and save the series for future use.

Once a macro has been created, it can be used to quickly perform the saved sequence of commands assigned to the shortcut key. In our save and exit example, pressing Ctrl + Alt + X will save the current document and exit the Microsoft Word® application.

Another thing to keep in mind when assigning shortcut keys is to be careful not to overwrite selections already in use, like Ctrl + S which controls the Save action by default. When a key combination is tried, the existing action is displayed to let the user know that the keyboard strokes they are trying to use for a macro are already used by the application. It is always best to combine Ctrl with Shift or Alt when assigning keystrokes to a new series to avoid removing existing useful shortcuts.

EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
By Rainer — On Sep 16, 2008

How do I copy macros in Word 2000 to another computer?

Share
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.