1. Computing

Discuss in my forum

Ted French

Excel Macro Tutorial

By , About.com GuideFebruary 15, 2007

Follow me on:

When you find yourself repeatedly performing the same actions or tasks in your spreadsheets, it might be time for you to create a macro. A macro is a recording of each command and action you perform to complete a task. Then, whenever you need to carry out that task in your spreadsheets, you just run the macro instead.

Macros can be activate by a couple of keystrokes or by a worksheet button so they are easy to execute, and, provided they were recorded correctly, they will always carry out the same steps in the same order with no chance for operator error.

Although complex macros can be created in Excel using the Macro editor, it also possible to create relatively simple ones using the Excel macro recorder. If you are new to using macros in your spreadsheets, read this Excel Macro Tutorial on using the Excel macro recorder.
Comments
June 4, 2007 at 12:02 pm
(1) Jack says:

Cool. Sweet n simple, provided could have given some info touching VBA too.

April 4, 2008 at 8:40 am
(2) Megha says:

Awesome… very simple!!

November 14, 2008 at 11:08 am
(3) John says:

This was yummy

January 14, 2009 at 9:07 am
(4) piyush says:

awsme

May 17, 2009 at 12:14 am
(5) shyn says:

tnx! I have seen from a man’s work that when he put numbers in two cells the result will be shown at the name of the sheets he was using. it will automatically change if he put sumthing in two cells from the spreadsheet.he said he’s using macro. I have no idea how it was done. can u give me an idea about it?

August 6, 2009 at 3:48 am
(6) Shaza says:

Thank you so much for your great tutorial

October 19, 2009 at 3:58 pm
(7) Scott says:

Great tutorial but I discovered that the Excel version for Mac is unable to create macros, only import existing ones. For Mac users, try using Automator.

December 3, 2009 at 8:37 am
(8) elizabeth says:

this is the best tutorial i have ever had

February 4, 2010 at 8:48 am
(9) Ammar says:

Hello.

Really simple. What if there is some changes you need to add, is that still possible using Macro?

Thanks

October 20, 2010 at 11:44 am
(10) Rachel says:

I don’t understand the difference between saving the macro in a workbook, worksheet or personal list.
What advantage disadvantage and how to use them once created. I don’t see much notes on this.
Thanks.

December 16, 2010 at 2:22 pm
(11) Rock says:

I don’t understand the difference between saving the macro in a workbook, worksheet or personal list.
What advantage disadvantage and how to use them once created. I don’t see much notes on this.
Thanks.


If you store a macro in:
PERSONAL MACRO WORKBOOK, you can run it in any workbook.
NEW WORKBOOK, you can choose this if you want to begin recording with no workbooks open, or if you want the functionality of the macro to be applied to a new workbook.

September 22, 2011 at 2:14 am
(12) Shubham says:

Thanks :D
that was cool..:D

September 23, 2011 at 1:40 am
(13) SONIA JAYAPRAKASH says:

NICE HELPFUL….

October 25, 2011 at 4:45 pm
(14) israel says:

Great tutorial but I discovered that the Excel version for Mac is unable to create macros, only import existing ones. For Mac users, try using Automator.

January 13, 2012 at 3:42 pm
(15) ajit says:

Nice tutorial.

February 15, 2012 at 3:42 am
(16) Jenita says:

Thank you ted french!!
good effort well put up.

February 28, 2012 at 6:44 am
(17) Ryan Kim says:

SImple and easy! Really helpful!

April 23, 2012 at 5:51 am
(18) Siva says:

Nice Work!!!

September 5, 2012 at 3:30 am
(19) Arun says:

Hi,

With the help of tutorial guideline I run the Basic Macro its very easy.

January 11, 2013 at 5:21 pm
(20) sherlene_durant says:

This unique article, _Excel Macro Tutorial_ ended up being great.
Thanks for your effort-Christine

February 6, 2013 at 11:01 am
(21) bhargav says:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Dim MyRange As Range
Dim IntersectRange As Range

Set MyRange = Range(“C:F”)

Set IntersectRange = Intersect(Target, MyRange)

On Error GoTo SkipIt

If IntersectRange Is Nothing Then
Exit Sub

Else

Target = Format(Now, “ttttt”)

End If

SkipIt:
Exit Sub

End Sub

March 20, 2013 at 3:24 pm
(22) Nike Free says:

You should be a part of a contest for one of the highest quality websites online.
I’m going to highly recommend this web site!

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>
Top Related Searches excel macro

©2013 About.com. All rights reserved.