Overview
Create your own macros, scripts that help you automate your routine tasks and standardize documents.
ONLYOFFICE macros use JavaScript language syntax and ONLYOFFICE Document Builder API scripting notation.
You can add your own macros to documents, edit and save them.
How to use the plugin
- Open the Plugins tab and press Macros.
- Click “New” and consult the API documentation to write the necessary script.
- Enter your script code and click “Run” to run it within the document.
How to use VBA-based macros in ONLYOFFICE
Macros written in Visual Basic won’t be compatible with ONLYOFFICE. You can rewrite your old macros to make them work in ONLYOFFICE.
Use our API documentation to learn how to convert macros.

