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. Type a letter, say q, in the box next to Ctrl + under Shortcut key.Select Record Macro from the dropdown list.Adding a Shortcut Key While Recording a Macro 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.
#EXCEL ASSIGN HOTKEY TO MACRO PLUS#
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.