DoMenu (macro)

Execute the menu command with the specified ID by running its script immediately.

Definition:

Def DoMenu
{
menu -E %1
};

Example:

The following script executes the Statistics on Column menu command. It then creates the DescStatsOnCols reportsheet in the active workbook.

domenu 52638; // 52638 is ID of Statistics on Column menu command.