All jobs and fields require some repetitive steps. Even the most creative jobs can usually require some monotonous tasks. Tools like Excel can help us automate some of those repetitive steps and that way makes our lives easier, so we can get the work done quickly and have more leisure time. In essence that is what Macros do; they’re shortcuts for repetitive tasks done within Excel. In this tutorial, I will show you how to create a simple macro that will memorize the steps involved in a simple repetitive task. We are going to be using fictitious information for the Training Department in a restaurant chain company called Happy Tummies. This company has restaurants in five major cities, so a great deal of training is done all year round. All restaurants are assigned a Training Manager, there are five Training Mangers in total. We’ll pretend you are the Training Specialist who works out of the Corporate Office located in Miami, FL and are responsible for analyzing and preparing reports on all the trainings completed. One repetitive task that you always perform is entering the names of all the Training Managers to prepare the daily training reports.
Let’s Get Started!
1. Go to Start>Programs>Microsoft office>Microsoft Excel to open the application. Then, go to Start>New to open a new spreadsheet. Go to File>Save as and save the new file before going further so you don’t loose any work.

Please Note: Macros require you to set a security level of low, medium or high. For the purposes of this tutorial, which is just to show you the simple basic steps to creating a macro, we are going to set the security level to medium since a security level of high will restrict the use of the macro.
2. Go to Tools>Macro>Security, and a pop up window named “Security” will appear. Select the Medium option under the Security Level tab and click OK to continue.

3. Go to Tools>Macro>Record New Macro.

4. A pop up window named “Record Macro” will appear. Here you will n
need to enter a name for the macro under “Macro Name”, I’m calling this macro “ht” (the initials of the company, Happy Tummies). Please note that the first character of the macro name should be a letter, then you can use any letter, number or underscore but with no spaces. Then, enter a symbol from the keyboard under “shortcut key” to be used as a shortcut to activate the macro, I’m entering “h” since it is the initial of the company’s name. Then, you need to select the placement of the macro under “Store macro in:” – I’m saving this macro in the “Personal Macro Workbook” so that it is available when you create new spreadsheets and want to use the macro. Finally, enter a brief description of the macro under “Description” and click OK to continue.

5. In this step, you will record the macro. You will see a tiny pop up window that will appear with a blue button , you can press this blue button at any time to stop recording the steps for the macro. Now, enter the five names of the training managers starting under column A, row 1 The names are: Mary Smith, Thomas Spicler, Morgan Lopez, Samantha Davies and Nike Temples. Once you are done entering all five names, click the blue button to stop recording the new macro. You are done recording the macro, but please remember that they keyboard shortcut for this macro is Control Key + h, and that you saved the macro in your “personal macro workbook.”

6. In this step will test that the “ht” macro works. Go to File>New to open a new spreadsheet. Then, press the Control key and “H” key at the same to activate the macro. You will see that the names of the five Training Managers have appeared under column A. Please note that you can also go to Tools>Macro>Macros and select this macro from the “Personal Macro Workbook” to run it.

Well Done! You’ve learned some quick simple steps that will help you create macros. But, do keep in mind that macros can be more complex and powerful; so the more you learn about them and practice using them, the better you will get. I will you show more complex functionalities of macros in other separate tutorials.
If this tutorial has helped you, please consider donating.


{ 2 trackbacks }
{ 159 comments… read them below or add one }
← Previous Comments
Nice example.
I will donate. Please show me how to create a macro that will automatically sort a column. This column will be set up as a vloopup from anothe worksheet. Is that possible? Need your help ASAP. I will pay you.
Hi,
I thought Creating Macro itself is tidious task but bigining is very simple like to go indepth of it
Thank you very much
Quite understandable and easy to learn. In short very helpful..
this is very helpful for beginners
it would be great help if u can give some more examples.
I’ve been using excel for a while, but somehow have never learned how to make a macro. That was the easiest explination i found anywhere. Thanks
Really simple!!!!
Thanks.It would be nice if you can tell us how to create simple macros using VBA along with the syntax for simple VBA commands.
Thanks, this is great.
hi,
it was very good and clear to understand
teach some complex example task dude….
good
There are many more example on the way, I am in the process of upgrading the site.
great job…
very nice example i want to practice more than this .
thanks dude ………..
please tell me web sites of other tutorial……..
MANJU
hi,
i wants to learn macro..i can create a little bit but how to use it for whole sheet
Excellent example to undestand about marco..thanks
Excellent
Very good example!!
really it helps me. i got it i got it……..Thanks
good, very easy learn.
requesting you to give more on macro
Very easy way to learn macro.
good one. i know the basic now
i would like ro learn more
Thanks
This was truly a simple example which covered a lot, especially for a non technical guy like me!!!
this article is good,but in windows Vista and 2007 version of excel,the tools option is not comin,so i m very confused,how to work here.
Really nice example
thanks it helps me alot
Too easy. It has taken out the fear of macros out of me.
Hi,
It’s very useful for all of them……………..Very Nice to learn easy
Thanks Chozhan………….
thanks for learn me macrows but we need practical example to how its use full in our job
can i pay you to do a simple macro for me
a macro for when i put list name call 100 item list drop down
please give me a macro to solve this problem
great example to start with
Thank you man.
Excellent example to learn about Macros.
Nice Example….
Thanks………………… Yamsani
Excellent example to learn formula for execl
Very good and very simple for the begniers.
Hey…
Vry Vry nice… Its vry easy and simple to understand for beginners.
Its would be great if you can teach some more complicated macros.
Hi,
I am an HR and have to contantly work with excels. I want to know if i can create macros to pull out data from one excel file to another excel file?
Please could someone again show me a very simple steps to create macros using excel
Great example, using this in our IST class, thank you. XD
thank u so much….it was very clear to understand. its very nicely explained step by step. thank you..much appreciated.
Very nice example. How do I get more of your tutorials? Of course I willdonate
Thanks
Regards
Nice example, …………
thanks nice one
Thanks. It is very good and clear. Thanks a lot
Thanks. It is very good and clear. Thanks a lot. One more thing. Also please let us know how to erase a range of cells and copy only the value (not formulas) in to another column with Macros
very nice i can easily got the matter
← Previous Comments