You
have learned how to create a macro, add macro actions and their
associated arguments, create macro subroutines by adding submacros, and
conditionally execute the actions in the macro by adding macro
conditions. However, after you have created a macro, you might want to
modify it. First, you must enter Design view for the macro:
1. | Select the Macros group on the Navigation Pane.
|
2. | Select the macro you want to modify.
|
3. | Right-click and select Design View.
|
When the design of the macro
appears, you’re then ready to insert new lines, delete existing lines,
move the macro actions around, or copy macro actions to the macro you’re
modifying or to another macro.
Inserting New Macro Actions
To insert a macro action, follow these steps:
1. | Click the line above where you want the macro action to be inserted. An Add New Action macro line appears.
|
2. | Open the drop-down to select the appropriate macro action, click to Add Else, or click to Add Else If.
|
Deleting Macro Actions
Follow these steps to delete a macro action:
1. | Hover your mouse over the macro action, submacro or If statement that you want to delete.
|
2. | Click the X that appears on the right side of the macro line.
|
As an alternative, to delete a
line within a macro, just right-click that line and select Delete from
the context-sensitive menu.
|
Moving Macro Actions
You can move macro
actions in a few ways, including dragging and dropping and cutting and
pasting. To move macro actions by dragging and dropping, follow these
steps:
1. | Hover your mouse pointer over the left side of the macro action you want to move until you see a hand.
|
2. | Click and drag to move the macro action to the desired location.
|
3. | Release the mouse button.
|
You can move multiple macro
actions as a group by clicking the first action you want to move. You
then hold down your Shift key and click the last action you want to
move. When you click and drag the hand of the first action, the actions
will move as a group.
|
If you accidentally drag and
drop the selected macro actions to an incorrect place, use the Undo
button on the Quick Access toolbar to reverse your action.
|
Copying Macro Actions
Follow these steps to copy macro actions within a macro:
1. | Hold down the Ctrl key.
|
2. | Hover your mouse pointer over the macro action you want to copy.
|
3. | When the hand appears, click and drag to copy the macro action to the desired location.
|
To copy multiple macro actions simultaneously, complete these steps:
1. | Click to select the first action you want to copy.
|
2. | While holding down the Shift key, click the last action you want to copy.
|
3. | Hover your mouse pointer over one of the macro actions in the group.
|
4. | When the hand appears, click and drag to copy the macro action to the desired location. |