0% found this document useful (0 votes)
44 views

Record or Run A Macro: Show The Developer Tab

This document discusses macros in Microsoft Word 2007. It explains that macros allow users to automate repetitive tasks by recording or writing a series of commands. Some common uses of macros include speeding up formatting and editing tasks, combining multiple commands, and automating complex processes. The document provides instructions for showing the Developer tab, recording a macro, running an existing macro, and writing a new macro from scratch.

Uploaded by

waxguru
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Record or Run A Macro: Show The Developer Tab

This document discusses macros in Microsoft Word 2007. It explains that macros allow users to automate repetitive tasks by recording or writing a series of commands. Some common uses of macros include speeding up formatting and editing tasks, combining multiple commands, and automating complex processes. The document provides instructions for showing the Developer tab, recording a macro, running an existing macro, and writing a new macro from scratch.

Uploaded by

waxguru
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Record or run a macro

Show All

In Microsoft Office Word 2007, 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.

Typical uses for macros are:

 To speed up routine editing and formatting

 To combine multiple commands — for example, to insert a table with a specific size and borders, and with a

specific number of rows and columns

 To make an option in a dialog box more accessible

 To automate a complex series of tasks

You can record a sequence of actions, or you can write a macro from scratch by entering code in the .

 NOTE    To work with macros in Office Word 2007, you need to show the Developer tab.

What do you want to do?

 Show the Developer tab


 Record a macro
 Run a macro
 Write a macro from scratch
 See it in action

Show the Developer tab

1. Click the Microsoft Office Button , and then click Word Options.

2. Click Popular.

3. Under Top options for working with Word, select the Show Developer tab in the Ribbon check box.

 NOTE    The Ribbon is a component of the Microsoft Office Fluent user interface.

TOP OF PAGE
Record a macro

On the Developer tab, in the Code group, click Record Macro.

1. Do one of the following:

 Begin recording    To begin recording the macro without assigning it to a button on the Quick Access

Toolbar or to a shortcut key, click OK.

 Create a button    To assign the macro to a button on the Quick Access Toolbar, do the following:
1. Click Button.

2. Under Customize Quick Access Toolbar, select the document (or all documents) for which you
want to add the macro to the Quick Access Toolbar.

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

3. Under Choose commands from dialog box, click the macro that you are recording, and then click
Add.

4. To customize the button, click Modify.

5. Under Symbol, click the symbol that you want to use for your button.

6. In the Display name box, type the macro name that you want to display.

7. Click OK twice to begin recording the macro.

The symbol that you choose is displayed in the Quick Access Toolbar. The name that you type is
displayed when you point to the symbol.

 Assign a keyboard shortcut    To assign the macro to a keyboard shortcut, do the following:

1. Click Keyboard.

2. In the Commands box, click the macro that you are recording.

3. In the Press new shortcut key box, type the key sequence that you want, and then click Assign.

4. Click Close to begin recording the macro.

2. Perform the actions that you want to include in the macro.

 NOTE    When you record a macro, you can use the mouse to click commands and options, but not to
select text. You must use the keyboard to select text. For more information about selecting text by using
the keyboard, see Select text.
3. To stop recording your actions, click Stop Recording in the Code group.

CHANGE THE KEYBOARD SHORTCUT FOR A MACRO

1. Click the Microsoft Office Button , and then click Word Options.

2. Click Customize.

3. Next to Keyboard shortcuts, click Customize.

4. In the Categories list, click Macros.

5. In the Macros list, click the macro that you want to change.

6. In the Press new shortcut key box, type the key combination that you want to choose.

7. Check the Current keys box to make sure that you aren't assigning a key combination that you already use
to perform a different task.

8. In the Save changes in list, click the option that matches where you want to run your macro.

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

9. Click Close.

TOP OF PAGE

Run a macro

1. On the Developer tab, in the Code group, click Macros.

2. In the list under Macro name, click the macro that you want to run.

3. Click Run.

TOP OF PAGE

Write a macro from scratch

1. On the Developer tab, in the Code group, click Macros.


2. In the Macro name box, type a name for the macro.

 NOTE    If you give a new macro the same name as a built-in macro in Office Word 2007, the new macro
actions will replace the built-in macro. To view a list of built-in macros, click Word Commands in the
Macros in list.

3. In the Macros in list, click the or document in which you want to store the macro.

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

4. Click Create to open the Visual Basic Editor.

After you open the Visual Basic Editor, you may want more information about working with Visual Basic for
Applications. For more information, click Microsoft Visual Basic Help on the Help menu or press F1.

TOP OF PAGE

See it in action

Watch these videos to see how to create, edit, and run a macro.

ENABLE THE DEVELOPER TAB AND PREPARE TO RECORD A MACRO

Play Demo 
See how to enable the Developer tab, prepare a macro, assign a button, and
begin recording

RECORD, PAUSE, SAVE, AND RUN


Play Demo 
See how to record a macro while pausing and resuming, and then save and run
the results.

EDIT THE MACRO

Play Demo 
Watch as a macro is edited in Microsoft Visual Basic and saved.

ASSIGN A BUTTON OR KEYBOARD SHORTCUT

Play Demo 
Assign a button or a keyboard shortcut to an existing macro.

You might also like