43
ACTIVITY 2-1
Automating Tasks Using Macros
Data Files
C:\091025Data\Using Macros\SmothersNewsletter.docm
Before You Begin
Verify that the DEVELOPER tab is displayed. If necessary, follow the steps in the “How to
Automate Tasks Using Macros” section to display it.
Scenario
The applications administrator for Smothers & Family Hardware created a new macro, SMacro2, for
formatting documents. You know you can trust the macro because it was created internally. Her
memo explaining how to use the new macro said the keyboard shortcut for it is Ctrl+Shift+Alt+D.
The macro formats documents so that the store name is properly formatted, along with proper
headers and footers. You are ready to add the store name, header, and footer to the document. The
administrator sent the macro as part of a document file, but she said if you add it to your Normal
template, it will be available in any new document.
1. Open the file containing the macro and enable macros.
a) From the C:\091025Data\Using Macros folder, open SmothersNewsletter.docm.
b) In the SECURITY WARNING message, select Enable Content.
c) Position the cursor at the beginning of the heading “Smothers & Family Hardware Opens New
Store.”
2. Run the SMacro2 macro.
a) On the DEVELOPER tab, in the Code group, select Macros.
b) In the Macros dialog box, select SMacro2.
c) Select Run. The Smothers & Family Hardware title is added to the top of the document along with a
header and footer on each page.
3. Remove the header and footer from the first page.
a) On the first page of the document, double-click in the Header area.
b) On the HEADER & FOOTER TOOLS DESIGN tab, in the Options group, check Different First Page.
This will remove the header and footer from the first page.
Note: Just because something is formatted or inserted with a macro doesn’t
mean that it can’t be edited or deleted.
4. Copy the SMacro2 macro to the Normal template.
a) On the DEVELOPER tab, in the Code group, select Macros.
b) Select Organizer.
c) In the left pane with SmothersNewsletter selected, select NewMacros.
d) With the Normal template selected in the right pane, select Copy.
e) Select Close.
5. Save the file in the current folder as
My Macro Newsletter
and then close the file.
32 | Word 2013: Mail Merge and Macros
Lesson 2: Using Macros
OTS Training