Advanced Spreadsheets – Run a macro

To run a macro, click on ‘Tools’ from the main menu bar. From the resulting drop-down menu, click on ‘Macros’, and from the sub-menu which gets displayed, click on ‘Run Macro’. This will open the ‘Macro Selector’ dialog box.


Run Macro (1)
Run Macro (2)
Run Macro (3)
Run Macro (4)
Run Macro (5)
Run Macro (6)
Run Macro (7)
Run Macro (8)
Run Macro (9)
Run Macro (10)
Run Macro (11)
Run Macro (12)
Run Macro (13)
Run Macro (14)
Run Macro (15)
Run Macro (16)
Run Macro (17)
Run Macro (18)
Run Macro (19)
Run Macro (20)
Run Macro (21)
Run Macro (22)
Run Macro (23)
Run Macro (24)
Run Macro (25)
Run Macro (26)
Run Macro (27)
Run Macro (28)
Run Macro (29)
Run Macro (30)
Run Macro (31)

Macro Selector

In this dialog box, in the ‘Library’ field, we have the list of all the libraries. Select the appropriate library and also the required module from that library. This will display the name of the macros present in that module in the ‘Macro Name’ field. Select the appropriate macro name and then click on ‘Run’. This will run the selected macro.

Assign a macro to a custom button on a toolbar.

To assign a macro to a custom button on a toolbar, click on ‘View’ from the main menu bar. From the resulting drop-down menu, click on ‘Toolbars’, and from the resulting sub-menu, click on ‘Form Controls’. This will open the ‘Form Controls’ dialog box. In this dialog, first of all click on the ‘Design Mode On/Off’ button. This will enable all the other buttons.

Assign Macro 18

After this, click on ‘Push Button’. The mouse pointer will change to a ‘+’ sign. Drag anywhere on the sheet to create a ‘Push Button’.

Push Button 19

After this, right click on the newly created button and from the resulting menu, click on ‘Control’. This will open the ‘Properties’ dialog box.

Key Pressed 20

In this dialog, under the ‘Events’ tab, we have different actions. Click on the ‘…’ button in front of the action to which you want to assign the macro. This will open the ‘Assign Action’ dialog box.

Assign Key 21

In this dialog box, under the ‘Assign’ field, click on the ‘Macro’ button. This will open the ‘Macro Selector’ dialog box.Macro Selector

In this dialog box, select the appropriate macro which needs to be assigned to this button. After selecting, click on ‘OK’. This will bring back the ‘Assign Action’ dialog box. Here also click on ‘OK’. This will bring back the ‘Properties’ dialog. Close this dialog and the selected macro will get assigned to the newly created button.