How to Create Macros in Excel

By eHow Computers Editor

Rate: (0 Ratings)

Excel contains an automated tool, called a macro, which can be used to perform common, repetitive tasks. A simple macro can be set to record keystrokes and mouse clicks when a user is performing a task, such as entering and organizing a list of names into an Excel spreadsheet. Once recorded, whenever it is time to enter a new set of the same kind of data, the user can have the macro perform this function by playing it back.

Instructions

Difficulty: Easy
Step1
Decide on the process that you want the macro to record. For instance, you can create a macro that will take care of summing up the numbers in a column.
Step2
Open a workbook in Excel. Click on one the cells you want to format.
Step3
Click on the "Tools" button on the tool bar. Highlight "Macro" on the Tools menu and then select "Record New Macro" from the Macro menu. A "Record Macro" dialog box appears which you can use to enter a name and description of your macro, select a shortcut key and choose a storage location.
Step4
Type a name for the new macro in the "Macro name" field. The name you choose must start with a letter and cannot include spaces. You can use a combination of letters, numbers and underscores.
Step5
Enter a shortcut key. This step is optional but it is a way to activate your macro quickly. Use any of the letters or symbols on your keyboard
Step6
Choose a storage option for your macro. You can store it in a new workbook, in the current workbook or in a personal macro workbook. Storing your macros in a personal macro workbook will make them available if you want to use any of them in a new spreadsheet.
Step7
Enter a description of your macro in the "Description" field. This step is also optional.
Step8
Click "OK" to continue and to begin the recording. A "Stop Recording" box will appear, showing that the macro has started recording.
Step9
Perform the tasks that you want the macro to record. When you have finished the process, click the blue button in the macro recording box to stop the recording.

Tips & Warnings

  • Saving your macro with a description is helpful when you need to select it from a group of macros.

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 Excel

eHow Computers Editor

eHow Computers Editor

Category: Computers

Articles: See my other articles

Related Ads