How to Create Macros in a Spreadsheet

By eHow Computers Editor

Rate: (0 Ratings)

A macro is a recording of keystrokes and mouse actions. Macros save you time, rather than having to repeat the same task repeatedly, you only have to do it once and the macro will then repeat it for you. The following will explain how to create a macro in an Excel spreadsheet.

Instructions

Difficulty: Moderately Easy
Step1
Open up the spreadsheet you want to create the macro in.
Step2
Click on "Tools," "Macros," "Record new macro" and the record macro dialogue box will appear.
Step3
Fill in the dialogue box with the name you want to call your macro where it says "Macro name." You can make a shortcut key, for example if you put "H" in the shortcut key box, the macro will be run every time you hold down the ctrl key and press "H". Next, put where you want to save it, which is usually the spreadsheet you are working in. Type in a description of the macro. When you have finished hit the "OK" box and the macro recording box will appear.
Step4
Start your routine. For example, you can insert rows, delete rows, insert columns, add columns, etc. Whatever you normally would do to the spreadsheet just do it while the record button is on. When you have completed the work, turn the macro off. If the "Turn macro off" box is on your screen use it, if not click on "Tools," "Macros," "Turn macro off" on your tool bar.
Step5
Play back the macro. You have assigned Ctrl+H to your macro, hit it now and it will go through all the steps you just did. If you need to do this several times a day or even several times a week or month you are going to save valuable time by using your macro.
Step6
Save your spreadsheet and exit. The next time you open it just select ctrl+h and it will complete your routine for you.

Tips & Warnings

  • Although the steps above describe how to create a macro in an Excel spreadsheet, you should be able to apply the process to any spreadsheet software.
  • Try not to put any extra steps into your macro. When you are recording, it will pick up any action you do.

Post a Comment

POST A COMMENT

Request a New How-To Article

Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

eHow Article: How to Create Macros in a Spreadsheet

eHow Computers Editor

eHow Computers Editor

Category: Computers

Articles: See my other articles

Related Ads