Running macro in Excel

Home/Excel VBA/Running macro in Excel

We can execute a macro in many different ways, in this topic we will learn Running macro in Excel: From Macro Dialog and By assigning a short-cut key to the Macro

PREMIUM TEMPLATES LIMITED TIME OFFER

ON SALE80% OFF

50+ Project Management Templates Pack
Excel PowerPoint Word

Advanced Project Plan & Portfolio Template
Excel Template

Business Presentations Templates Pack
PowerPoint Slides

20+ Excel Project Management Pack
Excel Templates

20+ PowerPoint Project Management Pack
PowerPoint Templates

10+ MS Word Project Management Pack
Word Templates


Running Macro in Excel: Executing or From Macro Dialog

Follow the below steps to assign a macro to a shortcut key:

Step 1: Go to Developer Tab or View Tab
Step 2: Select Macros from the Developer Tab or View Tab

It will open the Macro Dialog.

Step 3: Select a Macro which you want to execute it
Step 4: Click on Run” button

It will execute the selected macro.

Running Macro in Excel

Running Macro in Excel: Executing By Assigning a Shortcut Key to the Macro

Follow the below steps to assign a shortcut key to the macro:

Step 1: Go to Developer Tab or View Tab
Step 2: Select Macros from the Developer Tab or View Tab

It will open the Macro Dialog.

Step 3: Select a Macro which you want to assign a shortcut key
Step 4: Click on “Options…” button

It will show you Macro Options Dialog.

Step 5:Enter an alphabet in the Shortcut key text box

Example if you enter ‘q’, you have press Ctrl+q to execute your macro

Step 6:Then Press OK and Close the Macro Dialog

You are done! you can execute by pressing shortcut key (in this example it is Ctrl+q)

See the below image to understand the above steps:
macro-assign-shortcut-key

We have many other options to execute a macro, we will see it in the advanced tutorials.

LIMITED TIME OFFER
By |March 23rd, 2013|Excel VBA|0 Comments

About the Author:

PNRao is a passionate business analyst and having close to 10 years of experience in Data Mining, Data Analysis and Application Development. This blog is his passion to learn new skills and share his knowledge to make you expertise in Data Analysis (Excel, VBA, SQL, SAS, Statistical Methods, Market Research Methodologies and Data Analysis Techniques).

Leave A Comment


Related pages


vba timer functioncolor by code worksheetssum if function in excelconvert excel 2003 to 2013how to add the developer tab in excelgantt chart excel 2003 templatemeeting minute formatunlock vba codevba fileexistsmonthly meeting minutes templateexcel chart dashboardvba tutorial access3d cluster chart excelvb6 message boxexcel vba with rangeexcel sheet unprotectapplication.displayalertsiif in excelvlookup functionvba variable scopems excel vbadml commands sqlexcel 2010 advanced filtersql workbookarrange numbers in ascending order worksheetsexcel vba form controlstick on excelexcel macro create sheetexcel vlookup example downloadmicrosoft excel 2010 test questions and answersdelete blank rows excelexcel vba select columnmacro recorder excel 2010userform excel 2010how to delete unwanted pages in excelvba filter excelvlookup in excel 2007 with example in excelmerge excel worksheets without copying and pastingexcel unprotect sheet password removervba redim arrayhow to activate macros in excel 2007task tracking excel templatetrend analysis formula in excelvba to open workbookvba find last rowexecutive project dashboard templateexcel vba learnunlock excel cells without passwordwhat is a vlookupdelete duplicate dataquery sql server from excelexcel macro remove blank rowsexcel sort alphabeticallyexcel if cell contains text thensort vba excelunhiding columns in exceladd item combobox vbacolorfill colour chartexcel formula to find duplicatesvba select workbookapplication object vbasumif functionsexcel macro select cellhow to filter duplicate rows in excelunhide lines in excelunhide excel sheetsaverageif examplehow to merge worksheets in excelexcel 2007 lookupexcel delete defined nameclose workbook without saving