Macros
Macro commands (macros) are small programs written in Lua that automate lengthy or repetitive tasks in a document, such as:
- Adding text.
- Finding and replacing text fragments.
- Deleting text.
Available macro operations
- In the desktop app, you can create, edit, delete, and run macros.
- In the web app, you can only run existing macros.
Run a macro
If the open document contains macros, the run macro button becomes available on the toolbar.
- Click the run macro button.
- A dialog box will open listing all macros available in the document.
- Select the desired macro from the list.
Important notes
- Document lock: the document will be temporarily locked while a macro runs. A progress indicator will appear.
- Execution errors: if an error occurs during execution (e.g., due to incorrect code), an error message will be displayed.
- VBA support: the app does not support running macros written in VBA (e.g., from DOCM files). When such a file is converted to the internal format, VBA macros will appear in the list but will fail to execute.