

The macro button appears on the Quick Access Toolbar and the macro display name appears when you place the pointer on the button. The Macro name and the icon symbol change in the right pane. Modify the Display name that appears when you place the pointer on the Button image on the Quick Access Toolbar to a meaningful name, say, Run MyMacro for this example. Select one symbol to set it as the icon of the button. To change the macro button image, proceed as follows −

The macro name appears on the right side, with a macro button image. Select Macros from the dropdown list under the category- Choose commands from. Select Customize Quick Access Toolbar from the dropdown list. To add the macro button to the Quick Access Toolbar do the following − Suppose you have a macro with the name MyMacro in your personal macro workbook. The added button will appear on the Quick Access Toolbar in whatever workbook you open, thus making it easy for you to run the macro. This option would be useful when you store your macros in personal macro workbook. You can add a macro button to the Quick Access Toolbar and run the macro by clicking it. Running a Macro through Quick Access Toolbar Hence, use your jurisdiction while choosing the letters. Examples include Ctrl+C, Ctrl+V, Ctrl+X, etc. If you use any Ctrl + letter combination that is an Excel shortcut key, you will override it. Note − You can use any lowercase or uppercase letters for the shortcut key of a macro. To run the macro with the shortcut key, press the Ctrl key and the key q together. Type a letter, say q, in the box next to Ctrl + under Shortcut key.

Otherwise, you can add this later in the Macro Options dialog box. You can do this while recording the macro in the Create Macro dialog box. You can assign a shortcut key (Ctrl + key) for a macro. Select View Macros from the dropdown list.You have already learnt running a macro from the View tab on the Ribbon. Running a Macro by clicking on a Graphic Object.Running a Macro by clicking a button in a Custom Group on the Ribbon.Running a Macro by clicking a button on the Quick Access Toolbar.Running a Macro by pressing Ctrl plus a shortcut key.You can run a macro in the following ways − The macro would have been saved in your macro enabled workbook or in your Personal macro workbook that you can access from any workbook as you had learnt earlier. There are several ways of executing a macro in your workbook.
