Get Started
Plugins
Macros
More information

window.Asc.plugin.executeMethod ("GetMacros", callback)

Description

Defines the method that allows getting the document macros.

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod ("GetMacros");
Returns

The method returns the Macros object containing the data about all the macros from the document in the following form (JSON):

{
    "macrosArray" : array,
    "current" : number
}
Parameters
Parameter Description Type Example
macrosArray An array of macros codes ([{"name": "Macros1", "value": "{macrosCode}"}]). array of objects
current A current macros index. number 1