eHow launches Android app: Get the best of eHow on the go.

How To

How to Create Macros in a Spreadsheet

Contributor
By eHow Contributing Writer
(6 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.

From Quick Guide: Spreadsheets
Difficulty: Moderately Easy
Instructions
  1. Step 1

    Open up the spreadsheet you want to create the macro in.

  2. Step 2

    Click on "Tools," "Macros," "Record new macro" and the record macro dialogue box will appear.

  3. Step 3

    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.

  4. Step 4

    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.

  5. Step 5

    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.

  6. Step 6

    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.
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics