{"id":2777,"date":"2023-01-09T16:36:43","date_gmt":"2023-01-09T16:36:43","guid":{"rendered":"https:\/\/www.bizinfograph.com\/resource\/?p=2777"},"modified":"2024-02-27T17:10:35","modified_gmt":"2024-02-27T17:10:35","slug":"how-to-run-macro-in-excel","status":"publish","type":"post","link":"https:\/\/www.bizinfograph.com\/resource\/how-to-run-macro-in-excel\/","title":{"rendered":"How to Run Macro in Excel?"},"content":{"rendered":"<p>Run Macro in Excel enables users to execute complex tasks with a single click, significantly enhancing productivity and accuracy in data handling. This powerful feature allows for the automation of repetitive tasks, streamlined data analysis, and the creation of custom functions tailored to specific needs. By integrating Run Macro into your Excel workflow, you can save time, reduce errors, and focus more on strategic decision-making. Harness the full potential of Excel macros to transform your data management practices and unlock new levels of efficiency and effectiveness in your work.<\/p>\n<p><strong>This Tutorial Covers:<\/strong><\/p>\n<ol>\n<li><a href=\"#what-is-macro-in-excel?\">What is macro in Excel?<\/a><\/li>\n<li><a href=\"#how-to-enable-macro-in-excel?\">How to enable macro in Excel?<\/a><\/li>\n<li><a href=\"#how-to-record-a-macro-in-excel?\">How to record a macro in Excel?<\/a><\/li>\n<li><a href=\"#how-to-run-macro-from-excel-ribbon?\">How to run macro from Excel ribbon?<\/a><\/li>\n<li><a href=\"#how-to-run-a-macro-with-custom-keyboard-shortcut?\">How to run a macro with custom keyboard shortcut?<\/a><\/li>\n<li><a href=\"#how-to-run-macro-from-visual-basic-editor?\">How to run macro from Visual Basic Editor?<\/a><\/li>\n<li><a href=\"#how-to-create-macro-button-in-excel?\">How to create macro button in Excel?<\/a><\/li>\n<li><a href=\"#how-to-make-macro-button-from-a-graphic-object?\">How to make macro button from a graphic object?<\/a><\/li>\n<li><a href=\"#how-to-add-macro-button-to-quick-access-toolbar?\">How to add macro button to Quick Access Toolbar?<\/a><\/li>\n<li><a href=\"#how-to-put-macro-button-on-excel-ribbon?\">How to Put macro button on Excel ribbon?<\/a><\/li>\n<\/ol>\n<h2><strong id=\"what-is-macro-in-excel?\">1. What is macro in Excel? <\/strong><\/h2>\n<p>An Excel macro is a set of actions or actions with which you can record and run indefinitely to automate repetitive work. The macro saves your keystrokes and clicks and allows users to rerun them with a single click. Running an Excel macro is simple for experienced users, but it may not be obvious to beginners.<\/p>\n<h2><strong id=\"how-to-enable-macro-in-excel?\">2. How to enable macro in Excel?<\/strong><\/h2>\n<p><strong>To begin, enable the Developer tab.<\/strong><\/p>\n<p>To operate a macro, initially enable the Developer tab so that it is viewable on the Excel ribbon. Because it is not visible by default, you must manually add it.<\/p>\n<p><strong>Step 1:<\/strong> Go to File.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-2324\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-1.png\" alt=\"Run macro\" width=\"253\" height=\"151\" \/><\/p>\n<p><strong>Step 2:<\/strong> Click Options.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-2325\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-2.png\" alt=\"Run macro\" width=\"144\" height=\"194\" \/><\/p>\n<p><strong>Step 3:<\/strong> Select Customize Ribbon.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-2326\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-3.png\" alt=\"Run macro\" width=\"166\" height=\"336\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-3.png 166w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-3-148x300.png 148w\" sizes=\"(max-width: 166px) 100vw, 166px\" \/><\/p>\n<p><strong>Step 4:<\/strong> Select the Developer checkbox under Main Tabs.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2327 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-4.png\" alt=\"Run Macro in Excel \" width=\"347\" height=\"507\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-4.png 347w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-4-205x300.png 205w\" sizes=\"(max-width: 347px) 100vw, 347px\" \/><\/p>\n<p><strong>Step 5:<\/strong> Click OK.<\/p>\n<p>Result outlined below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2328 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-5.png\" alt=\"Run Macro in Excel \" width=\"641\" height=\"113\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-5.png 641w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-5-300x53.png 300w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/p>\n<p>Added in the excel ribbon.<\/p>\n<h2><strong id=\"how-to-record-a-macro-in-excel?\">3. How to record a macro in Excel?<\/strong><\/h2>\n<p><strong>Step 1: <\/strong>Click Record Macro on the Developer tab&#8217;s Code group.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2329\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-6.png\" alt=\"Run macro\" width=\"656\" height=\"145\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-6.png 656w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-6-300x66.png 300w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/><\/p>\n<p><strong>Step 2:<\/strong> Name the macro in the Macro name box, being as descriptive as possible.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2330 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-7.png\" alt=\"Run Macro in Excel \" width=\"410\" height=\"272\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-7.png 410w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-7-300x199.png 300w\" sizes=\"(max-width: 410px) 100vw, 410px\" \/><\/p>\n<p><strong>Step 3:<\/strong> Select where you want to save the macro by clicking the drop-down arrow to the right of the Store macro in box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2332 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-8.png\" alt=\"Run Macro in Excel \" width=\"396\" height=\"237\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-8.png 396w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-8-300x180.png 300w\" sizes=\"(max-width: 396px) 100vw, 396px\" \/><\/p>\n<p><strong>Step 4:<\/strong> To create a shortcut for the macro, type an upper-case or lower-case letter in the Shortcut key box. It is possible that Excel will prevent you from using an existing shortcut key. In this case, it&#8217;s best to create a one-of-a-kind key.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2333 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-9.png\" alt=\"Run Macro in Excel \" width=\"404\" height=\"241\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-9.png 404w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-9-300x179.png 300w\" sizes=\"(max-width: 404px) 100vw, 404px\" \/><\/p>\n<p><strong>Step 5:<\/strong> In the Description box, write a description of what the macro does.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2334\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-10.png\" alt=\"Run macro\" width=\"389\" height=\"218\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-10.png 389w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-10-300x168.png 300w\" sizes=\"(max-width: 389px) 100vw, 389px\" \/><\/p>\n<p><strong>Step 6:<\/strong> To begin recording, click OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2335\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-11.png\" alt=\"Run macro\" width=\"296\" height=\"251\" \/><\/p>\n<p><strong>Step 7:<\/strong> Perform steps that you want to save to perform future tasks.<\/p>\n<p><strong>Step 8: <\/strong>Click Stop Recording on the Developer tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2336 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-12.png\" alt=\"Run Macro in Excel \" width=\"642\" height=\"113\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-12.png 642w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-12-300x53.png 300w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/p>\n<h2><strong id=\"how-to-run-macro-from-excel-ribbon?\">4. How to run macro from Excel ribbon<\/strong><\/h2>\n<p>Running a macro from the Developer tab is one of the quickest ways to execute VBA in Excel. To run a macro in excel from the Developer tab, follow these steps:<\/p>\n<p><strong>Step 1:<\/strong> Click Macros in the Code group on the Developer tab. Alternately, use the Alt + F8 shortcut.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2337\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-13.png\" alt=\"Run macro\" width=\"643\" height=\"143\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-13.png 643w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-13-300x67.png 300w\" sizes=\"(max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><strong>Step 2:<\/strong> <strong>Select the macro of interest from the Macro dialog box, and then click Run.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2338 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-14.png\" alt=\"Run Macro in Excel \" width=\"580\" height=\"375\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-14.png 580w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-14-300x194.png 300w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/p>\n<h2><strong id=\"how-to-run-a-macro-with-custom-keyboard-shortcut?\">5. How to run a macro with custom keyboard shortcut?<\/strong><\/h2>\n<p>When you employ a specific macro on a regular basis, you can assign it a shortcut key. A shortcut can be added to both a new macro and an existing one. Follow these steps to accomplish this:<\/p>\n<p><strong>Step 1:<\/strong> Click Macros in the Code group on the Developer tab. Alternately, use the Alt + F8 shortcut.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2339\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-15.png\" alt=\"Run macro\" width=\"643\" height=\"145\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-15.png 643w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-15-300x68.png 300w\" sizes=\"(max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><strong>Step 2: <\/strong>Select the macro to which you want to assign the shortcut key from the Macro name box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2340\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-16.png\" alt=\"Run macro\" width=\"588\" height=\"384\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-16.png 588w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-16-300x196.png 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/p>\n<p><strong>Step 3: <\/strong>To open the Macro Options dialog box, click the Options button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2341 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-17.png\" alt=\"Run Macro in Excel \" width=\"475\" height=\"372\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-17.png 475w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-17-300x235.png 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/p>\n<p><strong>Step 4: <\/strong>The Macro Options dialog box appears. In the Shortcut key box, type the letter you want for your custom keyboard shortcut.<\/p>\n<ul>\n<li>Ctrl + letter is the shortcut for lowercase letters.<\/li>\n<li>Ctrl + Shift + letter is the shortcut for uppercase letters.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2342\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-18.png\" alt=\"Run macro\" width=\"480\" height=\"268\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-18.png 480w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-18-300x168.png 300w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>Or,<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2343\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-19.png\" alt=\"Run macro\" width=\"517\" height=\"268\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-19.png 517w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-19-300x156.png 300w\" sizes=\"(max-width: 517px) 100vw, 517px\" \/><\/p>\n<p>To avoid overriding the default Excel shortcuts, always use uppercase key combinations for macros (Ctrl + Shift + letter). If you assign \u2018Ctrl + c\u2019 to a macro, for example, you will lose access to copy anything.<\/p>\n<p><strong>Step 5: <\/strong>In the Macro Options menu, click the OK button.<\/p>\n<p><strong>Step 6: <\/strong>In the Macros menu, click the Cancel button.<\/p>\n<h2><strong id=\"how-to-run-macro-from-visual-basic-editor?\">6. How to run macro from Visual Basic Editor?<\/strong><\/h2>\n<p>Follow these steps to run macro in excel from the VBE:<\/p>\n<p><strong>Step 1: <\/strong>Go to the Developer tab. To open the VBE, select Visual Basic. By pressing Alt + F11, you can also access the VBE (Windows)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2344\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-20.png\" alt=\"Run macro\" width=\"644\" height=\"190\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-20.png 644w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-20-300x89.png 300w\" sizes=\"(max-width: 644px) 100vw, 644px\" \/><\/p>\n<p><strong>Step 2: <\/strong>To open the module containing your macro, double-click it in the Project Explorer window on the left.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2345 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-21.png\" alt=\"Run Macro in Excel \" width=\"580\" height=\"320\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-21.png 580w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-21-300x166.png 300w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/p>\n<p><strong>Step 3: <\/strong>Put the cursor anywhere within the macro that you want to run and then do one of the following:<\/p>\n<ul>\n<li>Tap on the Run then click on Run Macro<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2346\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-22.png\" alt=\"Run macro\" width=\"589\" height=\"295\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-22.png 589w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-22-300x150.png 300w\" sizes=\"(max-width: 589px) 100vw, 589px\" \/><\/p>\n<ul>\n<li>Click the Run Macro button on the toolbar (green triangle).<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2347\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-23.png\" alt=\"Run macro\" width=\"587\" height=\"310\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-23.png 587w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-23-300x158.png 300w\" sizes=\"(max-width: 587px) 100vw, 587px\" \/><\/p>\n<p>You can also use either of these shortcuts:<\/p>\n<ul>\n<li>To run the entire code, press F5.<\/li>\n<li>To run each code line separately, press F8.<\/li>\n<\/ul>\n<h2><strong id=\"how-to-create-macro-button-in-excel?\">7. How to create macro button in Excel?<\/strong><\/h2>\n<p>To assign a macro to a button, follow these steps:<\/p>\n<p><strong>Step 1: <\/strong>Navigate to the Developer tab, then in the Controls group, click on Insert and after that click on the Button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2348\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-24.png\" alt=\"Run macro\" width=\"374\" height=\"282\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-24.png 374w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-24-300x226.png 300w\" sizes=\"(max-width: 374px) 100vw, 374px\" \/><\/p>\n<p><strong>Step 2: <\/strong>Simply click anywhere on the worksheet. This brings up the Assign Macro dialog box.<\/p>\n<p><strong>Step 3: <\/strong>Choose the macro you want to assign to the button and press OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2349\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-25.png\" alt=\"Run macro\" width=\"524\" height=\"382\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-25.png 524w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-25-300x219.png 300w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><\/p>\n<p><strong>Step 4:<\/strong> In the worksheet, a button is added. Right-click the button and select Edit Text from the context menu to change the text.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2350\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-26.png\" alt=\"Run macro\" width=\"455\" height=\"272\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-26.png 455w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-26-300x179.png 300w\" sizes=\"(max-width: 455px) 100vw, 455px\" \/><\/p>\n<p><strong>Step 5:<\/strong> Remove the default text, such as Button 1, and replace it with your own.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2351\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-27.png\" alt=\"Run macro\" width=\"223\" height=\"122\" \/><\/p>\n<p>You have now managed to add a button to your Excel worksheet which, once clicked, will execute the assigned macro.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2352\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-28.png\" alt=\"Run macro\" width=\"630\" height=\"124\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-28.png 630w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-28-300x59.png 300w\" sizes=\"(max-width: 630px) 100vw, 630px\" \/><\/p>\n<h2><strong id=\"how-to-make-macro-button-from-a-graphic-object?\">8. How to make macro button from a graphic object?<\/strong><\/h2>\n<p>Unfortunately, there is no possible to customize the appearance of button controls, so the button we just created does not look very nice. Shapes, icons, images, WordArt, and other objects can be used to create a truly beautiful Excel macro button.<\/p>\n<p>Here&#8217;s how to launch a macro by tapping a shape:<\/p>\n<p><strong>Step 1:<\/strong> Click Shapes on the Insert tab, in the Illustrations group, and then select the desired shape type, such as a Oval:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2353\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-29.png\" alt=\"Run macro\" width=\"310\" height=\"143\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-29.png 310w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-29-300x138.png 300w\" sizes=\"(max-width: 310px) 100vw, 310px\" \/><\/p>\n<p><strong>Step 2:<\/strong> Click where you want to insert the shape object in your worksheet.<\/p>\n<p><strong>Step 3:<\/strong> Make your shape-button however you want. Simply double-click the shape and begin typing to add text.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2354\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-30.png\" alt=\"Run macro\" width=\"268\" height=\"93\" \/><\/p>\n<p><strong>Step 4:<\/strong> To assign a macro to a shape, right-click it and select Assign Macro&#8230;, then select the desired macro and click OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2355\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-31.png\" alt=\"Run macro\" width=\"209\" height=\"305\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-31.png 209w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-31-206x300.png 206w\" sizes=\"(max-width: 209px) 100vw, 209px\" \/><\/p>\n<p>You have now managed to add a button to your Excel worksheet which, once clicked, will execute the assigned macro.<\/p>\n<p>Results outlined below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2356\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-32.png\" alt=\"Run macro\" width=\"636\" height=\"128\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-32.png 636w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-32-300x60.png 300w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><\/p>\n<h2><strong id=\"how-to-add-macro-button-to-quick-access-toolbar?\">9. How to Add macro button to Quick Access Toolbar?<\/strong><\/h2>\n<p>Here&#8217;s how to add macro button to Quick Access Toolbar:<\/p>\n<p><strong>Step 1:<\/strong> Right-click on the Quick Access toolbar and select More Commands&#8230; from the drop-down menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2357 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-33.png\" alt=\"Run Macro in Excel \" width=\"381\" height=\"484\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-33.png 381w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-33-236x300.png 236w\" sizes=\"(max-width: 381px) 100vw, 381px\" \/><\/p>\n<p><strong>Step 2:<\/strong> Select Macros from the dropdown list of commands.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2358\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-34.png\" alt=\"Run macro\" width=\"479\" height=\"270\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-34.png 479w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-34-300x169.png 300w\" sizes=\"(max-width: 479px) 100vw, 479px\" \/><\/p>\n<p><strong>Step 3:<\/strong> Choose the macro to add to your Quick Access Toolbar.<\/p>\n<p><strong>Step 4:<\/strong> Click the Add button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2359\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-35.png\" alt=\"Run macro \" width=\"483\" height=\"272\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-35.png 483w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-35-300x169.png 300w\" sizes=\"(max-width: 483px) 100vw, 483px\" \/><\/p>\n<p><strong>Step 5:<\/strong> Click the OK button.<\/p>\n<p>Result outlined below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2360\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-36.png\" alt=\"Run macro\" width=\"437\" height=\"148\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-36.png 437w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-36-300x102.png 300w\" sizes=\"(max-width: 437px) 100vw, 437px\" \/><\/p>\n<h2><strong id=\"how-to-put-macro-button-on-excel-ribbon?\">10. How to Put macro button on Excel ribbon?<\/strong><\/h2>\n<p>Here&#8217;s how to put macro button on Excel ribbon:<\/p>\n<p><strong>Step 1:<\/strong> Click anywhere on the Excel ribbon to bring up the context menu.<\/p>\n<p><strong>Step 2:<\/strong> From the menu, choose Customize the Ribbon.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2361\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-37.png\" alt=\"Run macro\" width=\"371\" height=\"156\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-37.png 371w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-37-300x126.png 300w\" sizes=\"(max-width: 371px) 100vw, 371px\" \/><\/p>\n<p><strong>Step 3:<\/strong> To make a new ribbon tab, click the New Tab button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2362\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-38.png\" alt=\"Run macro\" width=\"643\" height=\"439\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-38.png 643w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-38-300x205.png 300w\" sizes=\"(max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><strong>Step 4:<\/strong> Give your tab a name by pressing the Rename button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2363\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-39.png\" alt=\"Run macro\" width=\"603\" height=\"383\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-39.png 603w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-39-300x191.png 300w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/p>\n<p><strong>Step 5:<\/strong> Choose Macros from the Choose commands from a dropdown menu.<\/p>\n<p><strong>Step 6:<\/strong> Choose the macro you want to include in the ribbon.<\/p>\n<p><strong>Step 7:<\/strong> Click the Add button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2364 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-40.png\" alt=\"Run Macro in Excel \" width=\"555\" height=\"355\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-40.png 555w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-40-300x192.png 300w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/><\/p>\n<p><strong>Step 8:<\/strong> Click the OK button.<\/p>\n<p>Result outlined below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2365\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2022\/12\/Run-macro-41.png\" alt=\"Run macro\" width=\"260\" height=\"146\" \/><\/p>\n<h2><strong>Application of\u00a0<\/strong>Run Macro in Excel<\/h2>\n<ul>\n<li><strong>Automate Repetitive Tasks<\/strong>: Use Run Macro in Excel to execute repetitive tasks like formatting reports, inserting functions, or data entry, saving time and ensuring consistency.<\/li>\n<li><strong>Data Analysis Automation<\/strong>: Automate complex data analysis sequences, such as sorting, filtering, and applying statistical functions to large datasets for quick, consistent results.<\/li>\n<li><strong>Batch Processing<\/strong>: Perform batch operations like updating multiple records, converting data formats, or mass-importing\/exporting data to streamline workflow efficiency.<\/li>\n<li><strong>Custom Reporting<\/strong>: Generate custom reports by running macros that compile data from various sources, apply specific formats, and create charts or tables as per business requirements.<\/li>\n<li><strong>Interactive Dashboard Functions<\/strong>: Enhance Excel dashboards by using macros to add interactive features such as buttons, dropdowns, and sliders for dynamic data exploration and visualization.<\/li>\n<li><strong>Scheduled Data Updates<\/strong>: Automate the process of updating Excel sheets at scheduled intervals by running macros to refresh data connections, ensuring up-to-date information is always available.<\/li>\n<\/ul>\n<p>You may be interested:<\/p>\n<ol>\n<li><a href=\"https:\/\/www.bizinfograph.com\/dashboard-templates#Finance\" target=\"_blank\" rel=\"noopener\">Financial Dashboards<\/a><\/li>\n<li><a href=\"https:\/\/www.bizinfograph.com\/dashboard-templates#Sales\" target=\"_blank\" rel=\"noopener\">Sales Dashboards<\/a><\/li>\n<li><a href=\"https:\/\/www.bizinfograph.com\/dashboard-templates#Human-Resource\" target=\"_blank\" rel=\"noopener\">HR Dashboards<\/a><\/li>\n<li><a href=\"https:\/\/www.executiveknowledge.org\/dashboard-templates\/35\" target=\"_blank\" rel=\"noopener\">Data Visualization Charts<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Run Macro in Excel enables users to execute complex tasks with a single click, significantly enhancing productivity and accuracy in data handling. This powerful feature allows for the automation of repetitive tasks, streamlined data analysis, and the creation of custom functions tailored to specific needs. By integrating Run Macro into your Excel workflow, you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[314],"tags":[316,315],"class_list":["post-2777","post","type-post","status-publish","format-standard","hentry","category-run-macro-in-excel","tag-run-macro","tag-run-macro-in-excel"],"_links":{"self":[{"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/posts\/2777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/comments?post=2777"}],"version-history":[{"count":5,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/posts\/2777\/revisions"}],"predecessor-version":[{"id":8665,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/posts\/2777\/revisions\/8665"}],"wp:attachment":[{"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/media?parent=2777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/categories?post=2777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/tags?post=2777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}