web analytics

CREATE AND RUN MACROS IN MICROSOFT WORD 2007

Microsoft Word 2007

Using macros in MS Word 2007 is very closely related with the programming, so it might be а problem for you to understand the macro’s operations. They are just a consequently recorded mouse clicks and keystrokes, such that the macro can automatically do your work. You can use the macro to replace the repeatedly done operations in order to save time. Great thing is that creating a macro is no harder than manually perform the operation you wish to be automated.

If you want to start with creating (running) Macros in Microsoft Word, you must be sure that the Developer Tab is appeared on your Word ribbon.

01

If is not appeared, then click on the Office Button in the top left corner of Word window.

02

Then, form the Office Button Menu press the Words Options Button in the bottom of the menu.

03

Then, select the Popular category from the Word Options Dialogue Box. Next, from the Top options for working with Word section, check the Show Developer tab in the Ribbon checkbox. Click OK.

04

1. Record a Macro

05

On the Developer Tab in the Code group, click on Record Macros Button.

06

Then, new Record Macro Dialogue box appears. If you want to Record Macro without assigning it to a button on the Quick Access Toolbar or to a shortcut key, click OK before entering the name of the Macro in Macro Name box.

07

The Macro will start recording the actions you take in the Word workbook. Also, two new buttons (Stop Recording and Pause Recording) will appear in the Code group instead of old one – Record Macro button. They are useful if you like to stop or pause the recording.

To assign the Macro to a button on the Quick Access Toolbar, first click on the Office Button (see second picture from top), and click on the Word Options button in the bottom of the menu (see picture 3 from top).

08

Then in the Customize category, under the Choose Commands From box, select Macros from the Drop-down list. Select one available Macro from the list below and press the Add Button. This will make appearance of the Macro in the list on the right hand side of the Word Options Dialogue box. Click Modify Button.

09

Choose one of the given icons to be your Macro Button in the Quick Access Toolbar. Before clicking OK, you may enter Display Name of the Macro Button. Then click OK again.

10

The Macro Button will appear on the Quick Access Toolbar. The name that you type is displayed when you point on the symbol.

11

You may start the procedure of assigning button to the Macro in the Quick Access Toolbar with clicking on the Record Macro Button in the Developer Tab in Code group and choosing the “Button“.

To make your macro available in all documents, be sure to click Normal.dotm.

When Record Macro display box is appeared, you may choose the Keyboard Button to assign a keyboard shortcut to the macro.

12

Then, In the Commands box, select the macro that you are recording. In the Press new shortcut key box, type the key sequence that you want, and then click Assign Button (Assign Button should be unlocked). Click Close to begin recording the macro.

2. Simply Running the Macro

13

In the Developer Tab in Code group, click the Macros Button.

14

In the Macros dialogue box, under the Macro Name box, choose the name of the Macro you wish to run. You can change the lists of available Macros in the Macros In box. Click Run. The Word will do the actions that are saved in the Macro you choose to run. The actions can be keystrokes or mouse clicks.

3. Delete a Macro

If you want to delete some of the recorded Macros, first select it from the Macro Name box and press the Delete button from the Macros Dialogue Box.

15

Microsoft Office Word dialogue box appears and asks you Do you want to delete the Macro you choose in the previous dialogue box. If you press Yes, the Macro will be deleted. Press No to return to the previous dialogue box without deleting the Macro.

Leave a Reply