MS Word - How To Create Macro

How To Create Macro

definition
DEFINITION:

Macro is the combination instructions and commands to form a single command that is used to automatically complete an operation or task in Ms-word.

In this tutorial, I am going to be teaching and showing you step by step how to create a macro which you can use for your editing and other purposes. This tutorial might be a bit long, so I recommend that you take it step by step without skipping any detail.

  • STEPS TO CREATE AND USE MACRO
  • Step 1 - Open a new blank document, Click the View tab, then move to Macro group and click on the Macros option. (This will display three options from the dropdown list: View Macros, Record Macro and Pause Recording).
    Click on the Record Macro option.
  • create-macro
  • Step 2 - The Record Macro dialog box will be displayed. From this dialog box, you can type in the Macro Name (mine is has already been renamed to MyTable), choose where to assign macro to: Button or Keyboard, choose whether to store Macro to only the current document or all documents.
  • create-macro
  • Step 3 (USING BUTTON) - After clicking on the button option, this will open the Word Option dialog box. In the first column section, the Quick Access Toolbar option is already selected, and on the middle section you will see the new macro you are about to create.
  • create-macro
  • Step 4 (USING BUTTON) - Click on the Add button so that the new macro will be added to the Quick Access Toolbar.
  • create-macro
  • Step 5 (USING BUTTON) - To change the icon of the new macro you want to create, click on the Modify button (This will open the modify dialog box for you to choose the icon you want to use). Click on any icon you want to use from the dialog box and click the Okay button.
  • create-macro
  • Step 6 (USING BUTTON) - Click the Okay button on the word options dialog box too. After that, you will be taken back to the normal blank word document. You will notice that you mouse pointer has changed. This because you can now start recording the macro.
  • Step 7 (USING BUTTON) - Record the macro that you want carefully, make sure not to make any mistakes while doing this. In my own case, I want to create my own table but you can create anything you want depending on what you intended at first to create.
  • create-macro
  • Step 8 (USING BUTTON) - After recording the macro, go to the View tab, in the Macros group, click on the Macro option, then from the dropdown list, click on the Stop Recording option.
  • create-macro
  • Step 9 (USING BUTTON) - The macro icon will be added to the Quick Access Toolbar. Now you can open a new document page, in you Quick Access Toolbar, click on the macro icon and what you recorded with the macro will take effect in your document.
  • create-macro
  • HOW TO DELETE MACRO
  • Step 1 - Open your Ms-word document, go to the View tab, in the Macros group click on the Macro option. From the dropdown list, click on the View Macros option (This will bring out a dialog box).
  • remove-macro
  • Step 2 - In the macros dialog box, to delete a macro, click on the macro name. Then click on the Delete button.
  • create-macro
  • Step 3 - Another dialog box will be displayed for you to confirm the deletion. Click on the Yes button to confirm deletion.
  • create-macro
  • Step 4 - The macro will be successfully removed from the macro list. Click on the Close button to exit the dialog box.
  • create-macro
  • Step 5 - If you are curious whether it has really been deleted, click on the macro icon again in the Quick Access Toolbar, you will get an error telling you that the macro can't be found.
  • create-macro
tips
TIP:

I suggest you create macro for frequently used formats only. If there are things you know you usually create when editing and formatting document, you can create a macro for it.

note
NOTE:

To use the Keyboard option for Macro, you can follow similar method to create it. But If you still want to see the steps, continue with the tutorial.

  • STEPS TO CREATE AND USE MACRO (KEYBOARD SHORTCUT)
  • Step 1 - Open a new blank document, Click the View tab, then move to Macro group and click on the Macros option. (This will display three options from the dropdown list: View Macros, Record Macro and Pause Recording).
    Click on the Record Macro option.
  • create-macro
  • Step 2 - The Record Macro dialog box will be displayed. From this dialog box, you can type in the Macro Name then click on the Keyboard option.
  • create-macro
  • Step 3 (USING KEYBOARD OPTION) - After clicking on the keyboard option, this will open the customize keyboard dialog box. Enter the shortcut that you want to use for the macro.
  • create-macro
  • Make sure that the keyboard shortcut is not assigned to any other thing in ms-word because it will override the previous assignment. If the keyboard shortcut is unassigned, the click on the Okay button.
  • create-macro
  • Step 4 (USIN KEYBOARD OPTION) - Shortcut will be assigned.
  • create-macro
  • Step 5 (USING KEYBOARD OPTION) - Record the macro that you want carefully, make sure not to make any mistakes while doing this. In my own case, I want to create my own table but you can create anything you want depending on what you intended at first to create.
  • create-macro
  • Step 6 (USING KEYBOARD OPTION) - After recording the macro, go to the View tab, in the Macros group, click on the Macro option, then from the dropdown list, click on the Stop Recording option.
  • create-macro
  • Step 9 (USING BUTTON) - Close the document windows, open a new document, and press the keyboard shortcut. What you recorded with the macro will take effect in your document.
  • create-macro
ADVERTISEMENTS

LEARNING IS A CONTINUOUS PROCESS - PRACTICE MAKES PERFECT