Create or run a macro

In Word, you can automate frequently used tasks by creating and running macros. A macro is a series of commands and instructions that you group together as a single command to accomplish a task automatically.


To save time on tasks you do often, bundle the steps into a macro. First, you record the macro. Then you can run the macro by clicking a button on the Quick Access Toolbar or pressing a combination of keys. It depends on how you set it up.


Record a macro with a button:


  1. Click View > Macros > Record Macro.
    Record Macro command
  2. Type a name for the macro.
    Macro name box
  3. To use this macro in any new documents you make, be sure the Store macro in box says All Documents (Normal.dotm).
    Box for choosing where to store a macro
  4. To run your macro when you click a button, click Button.
    Click to assign the macro to a button
  5. Click the new macro (it’s named something like Normal.NewMacros.<your macro name>), and click Add.
    The macro and the Add button
  6. Click Modify.
    Modify button in the Customize the Quick Access Toolbar box
  7. Choose a button image, type the name you want, and click OK twice.
    Button options in the Modify Button box
  8. Now it’s time to record the steps. Click the commands or press the keys for each step in the task. Word records your clicks and keystrokes.
    Note: Use the keyboard to select text while you’re recording your macro. Macros don’t record selections made with a mouse.
  9. To stop recording, click View > Macros > Stop Recording.
    Stop Recording command

The button for your macro appears on the Quick Access Toolbar.
Macro button on the Quick Access Toolbar
To run the macro, click the button.

Comments

Popular posts from this blog

Type Indian Rupees symbol in MS Word

Convert Text to Table & Table to Text

How to Create a Macro in word in Hindi