Professional Documents
Culture Documents
ENGL 202C
Introduction
Most people are familiar with the basic functionality of Microsoft Excel, but the
macro function is a very useful tool that it not utilized very often. If there is a task
that needs to be repeatedly performed, a macro can be used to complete the
tasks faster and easier. It effectively automates whatever task, so you only have
to perform it once and then it is automatically done again after recording the
macro. Everything from formulas to formatting of text can be automated using
the macro function.
There are two ways of creating a macro. The first involves writing code to create
the macro, but that will not be addressed in this instruction set. The other way is
to record actions done in Excel and then use the macro to do them again at a later
time. This way is very easy and involves writing no code.
Depending on what task is being recorded it should only take a few minutes to
create the macro, and all that is needed is a computer that has Microsoft Excel
installed on it. These instructions are based on Microsoft Excel 2007.
1|Page
Gordon Tonkin Instruction Set
ENGL 202C
Step-by-step Instructions
1. Run Excel and open the file you will be creating the macro in.
2. Click on the developer tab.
Note: if the developer tab is not visible follow the directions in the next section
How to make the developer tab visible (if already visible skip)
i. Click on the Microsoft emblem in the top left corner of Excel.
ii. Navigate to the bottom of the box that opens and click on Excel Options.
2|Page
Gordon Tonkin Instruction Set
ENGL 202C
At the top of the dialog box that opens there will be a box to click to show the
developer tab near the top of the screen.
3|Page
Gordon Tonkin Instruction Set
ENGL 202C
For these instructions a simple macro will be created that averages the numbers
in a column.
5. Click OK
4|Page
Gordon Tonkin Instruction Set
ENGL 202C
For example, the following screenshot shows the average of 14 numbers being
calculated and recorded.
5|Page
Gordon Tonkin Instruction Set
ENGL 202C
v. Hit the ENTER button and the cell will now have the average computed in it
6|Page
Gordon Tonkin Instruction Set
ENGL 202C
7|Page
Gordon Tonkin Instruction Set
ENGL 202C
8|Page
Gordon Tonkin Instruction Set
ENGL 202C
9|Page
Gordon Tonkin Instruction Set
ENGL 202C
10 | P a g e
Gordon Tonkin Instruction Set
ENGL 202C
For example, if you get a raw set of data that is in the same format over and over
again you can either go through each sheet in the Excel file and do many
calculations and formatting, or you could record a macro while doing calculations
and formatting the first time, and then simply use the macro for the rest of your
work, saving time and effort.
11 | P a g e