A textmacro is a shortcut for a sequence of keystrokes. A macro can be simple—it can type a word or phrase you use often—or it can be complex, such as a formatted address. A macro code is the name of the text macro you create. For example, instead of repeatedly typing “Centers for Disease Control and Prevention,” you can create a macro code (such as “cdc”) that changes to the full name.
To assign a keyboard shortcut for activating the macro, place the cursor in the Macro Key Shortcut text box, and press the keys you want to use for the shortcut.
Shortcuts are especially useful if you turn off Automatically Swap Macro Text in the Text Macros panel.
If the keyboard shortcut you want to assign to the macro is already assigned to another function, the alert symbol appears at the bottom of the dialog box with the message “Currently Assigned To: [function].” If you choose to assign the keyboard shortcut to the macro, the previous keyboard shortcut function is overridden.
You can replace the macro code with macro text automatically while typing, by using a macro key shortcut, or by choosing Swap Macro Text from the Text Macros panel menu.
Use the Duplicate Macro command to create a copy of an existing macro. The duplicate macro is assigned the same code as the original, but with a number appended to it, and is listed immediately after the original macro in the Text Macros panel. For example, duplicating the macro “DOT” creates a copy of the macro, named “DOT1.”
Once you delete a macro, you cannot undo the deletion.
You can insert macro text in three different ways: Using the Insert Macro Text command to insert macro text at the insertion point, having macro text inserted automatically while typing, or swapping existing text with macro text.
If Automatically Swap Macro Text is selected, macro codes are automatically converted to macro text while you type. For example, if you created a macro code named “cdc,” when you type cdc followed by a word-ending character such a space or period, Center for Disease Control and Prevention appears. The macro code is case-sensitive.
If you want to restore the macro code text, choose Edit > Undo until the macro code reappears.
The Swap Macro Text command searches the text immediately preceding the current text insertion point for any defined macro code (case-sensitive) and, if one is found, removes the macro code and replaces it with the associated macro text. For example, you have created a text macro for Centers for Disease Control and Prevention, and the macro code is CDC. To use the macro, type The CDC, and then with the text insertion point placed immediately following the macro code, choose Swap Macro Text. InCopy then searches the text immediately preceding the insertion point and replaces CDC with the macro text Centers for Disease Control and Prevention.
The Swap Macro Text command does not continue to search the entire document for every occurrence of the macro code. To find and replace all instances of a word or phrase, use the Find/Change command.