Macro samples

The following examples will show you how to use ONLYOFFICE macros and compare the JavaScript code with Microsoft Visual Basic for Applications code so that you could see the difference and understand what can be done to convert the VBA code to ONLYOFFICE macros.


If you want to request a feature or report a bug regarding macros, use the issues section on GitHub.

You can also request a macro sample by contacting us at