Macro commands (macros) are small Lua programs that automate the execution of lengthy or frequently repeated actions in a document, such as:
–adding content;
–finding and replacing content fragments;
–deleting content.
Available actions with macro commands
–In the desktop version of the application, you can create, edit, delete, and run macro commands.
–In the web version of the application, you can only run existing macro commands.
Run a macro command
If there are macro commands in an open document, the run macro button becomes available on the toolbar.
1.Click the run macro button.
2.A dialog box opens with a list of all macro commands available in the document.
3.Select the desired macro command from the list.
Important information
–Document lock: while the macro command is running, work with the document will be temporarily blocked. A progress bar will appear in the interface.
–Execution errors: if an error occurs during macro command execution (e.g. due to incorrect code), a message will be displayed.
–VBA support: running and executing macros written in VBA (e.g., from DOCM files) is not supported in the application. When converting such a file to the internal format, VBA macros will be displayed in the list of macros to run, but their execution will fail.