banner_ad

Simple way To Start learning Macros

Excel 2438 views 4 replies

Dear Friends,


Better way to understand macros is to RECORD and then "Read" the VB Script generated by the Macro to understand it.


Click Tools > Macros > Record New Macro


It will ask for macro name....(give some macro name)

Remember to select "This workbook" option in that window.


Once you click OK, a Macro "Stop Recording Toolbar"  will appear......


Try to do some simple calculations in the blank excel sheet.....(keep it very simple so that you can remember later)


Click Stop recording in "Stop Recording Toolbar"


Press Alt+F11 and in Top Left Hand side Corner...you can find the workbook on which you created will be listed.  In that list, select your workbook and open Modules Submenu listed in the same place....


Open Module 1.....you can see the macro name which you specified and the recorded VB Script for the activities which you did in the worksheet....


Try to recollect what you did in the worksheet and try to understand how to excel has interpreted it and recorded the VB Script...


This is the beginning to learn Macro....


Sample simple scripttts for your understanding:-


Range("D22").Select                   (means YOU have clicked D22 Cell in the worksheet.)

Sheets("Sheet3").Select               ( means YOU have clicked worksheet with name Sheet3)

Range("B4:I15").Select                  (means YOU have selected the range B4 to I15 )


Remember by doing this you can just have a look at a drop of an OCEAN......


Have faith, Try to do more, Explore....you ll be the master.....


Hope this helps u all


Regards,

gurusanthanam


Thanks to :Nagaraju pogula CA


------

"The difference between genius and stupidity is that genius has its limits." - Albert Einstein


"When I can't handle events, I let them handle themselves. " - Henry Ford

 

Replies (4)

Thank U Guru.

plz tell me

How I use these Macros? I mean what are the benefits of these Macros?

Very Nice

Thanks

Balaji,

Pls read my post in this thread...it would be helpful...

/forum/messages/2008/6/9941_learn_excel_macro_writting.asp

Regards,

gurusanthanam

 

Learn how to write code in VISUAL BASIC.

Its quite easy.

Try "Higher Secondary Text Book for twelth standard on Visual Basic"


CCI Pro

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
Featured 14 April 2026
GST CONSULTANT

Abhishek G Agrawal & Co.

Korba

CA Final

View Details
Company
Featured 28 March 2026
CA Final

Ashok Amol & Associates

New Delhi

CA Final

View Details
Company
Featured 19 March 2026
Article Assistant

Gupta Sachdeva & Co. Chartered Accountants

New Delhi

CA Final

View Details
Company
Featured 28 March 2026
Accountant

Ashok Amol & Associates

New Delhi

B.Com

View Details
Company
Featured 13 April 2026
GST CONSULTANCY

Abhishek G Agrawal & Co.

Korba

CA Final

View Details
Company
Featured 29 April 2026
Manager- Finance and Compliance

Naveen Fintech Pvt Ltd

Kolkata

CA Inter

View Details