To create a macro, follow these steps:
1.Add a new macro using one of the following methods:
•On the Macros tab, click
Macro editor. When working in macOS, you can also run the Tools > Macro editor command from the command menu. In the Macro editor window, click
.
•If there is at least one macro in the document, click
Macros on the Sidebar. In the Macros pane, click New macro.
2.Enter a name for the macro or leave the default name. To save the name, press Enter or click anywhere in the Macro editor.
3.Enter the code of the macro.
The new macro will be saved automatically.
When you add the first macro to your document, on the Sidebar, the
Macros button appears. This button is displayed as long as there is at least one macro in the document.
Click
Macros to open Macros pane.
To close the Macros pane, click the
button at the top of the pane, or click
Macros on the Sidebar again.