Sei sulla pagina 1di 31

How to Create Simple

Macro Using MS Excel 2007

Making your life simply better by sheilamarie.sevilla@gmail.com


Some of our works are
repetitive in nature…

Making your life simply better by sheilamarie.sevilla@gmail.com


Even the most creative job
requires monotonous tasks…

Making your life simply better by sheilamarie.sevilla@gmail.com


This is where Excel macro
can help you

Making your life simply better by sheilamarie.sevilla@gmail.com


By the way…
Macro doesn’t stand for
M – essy
A – nd
C – onfusing
R – epeated
O - peration
Making your life simply better by sheilamarie.sevilla@gmail.com
It came from the Greek
word “makros” which
means “large”
(which also describes your paycheck after you
become an expert macro programmer  )

Making your life simply better by sheilamarie.sevilla@gmail.com


Excel macro
allows you to
perform
repetitive tasks
quickly
Making your life simply better by sheilamarie.sevilla@gmail.com
So now, let’s get started!

Making your life simply better by sheilamarie.sevilla@gmail.com


To open Excel application
Click Start button

Choose All Programs

Select Microsoft Office

Click Microsoft Excel 2007

Making your life simply better by sheilamarie.sevilla@gmail.com


Just follow these
4 amazing steps…

Making your life simply better by sheilamarie.sevilla@gmail.com


Step 1
Make sure the Developer tab is shown
on the Excel ribbon

Making your life simply better by sheilamarie.sevilla@gmail.com


Oh no, it’s not there!!!

Making your life simply better by sheilamarie.sevilla@gmail.com


Easy… just click
the office button

and select Excel


Options

Making your life simply better by sheilamarie.sevilla@gmail.com


Under Popular
category,
put a check on
this box
then click Ok

Making your life simply better by sheilamarie.sevilla@gmail.com


The Developer tab will now be
present on the Excel ribbon!

Making your life simply better by sheilamarie.sevilla@gmail.com


Step 2

Open the
Developer tab
and click the
Record Macro
Button

Making your life simply better by sheilamarie.sevilla@gmail.com


Making your life simply better by
sheilamarie.sevilla@gmail.com
Note:

The main Macros button can also


be found in View Tab on the Excel
ribbon, but the Developer Tab
contains more advanced macro
tools so it’s really worth to add it.

Making your life simply better by sheilamarie.sevilla@gmail.com


Step 3:

Enter a name and


description for the
new macro

Making your life simply better by sheilamarie.sevilla@gmail.com


Assign a letter as a
shortcut key for
future use

Making your life simply better by sheilamarie.sevilla@gmail.com


Note:

If you will assign lowercase letter


like “n”, then your shortcut key
will be CTRL + n. For uppercase N,
it should be CTRL + Shift + n. It is
highly useful when running the
macro!

Making your life simply better by sheilamarie.sevilla@gmail.com


On the same drop
down box, choose
where you want to
store your macro

Making your life simply better by sheilamarie.sevilla@gmail.com


Note:

If you want the macro to be


accessible in any Excel file, choose
Personal Macro Workbook. Select
This Workbook when you plan to
use it only for the current
worksheet.

Making your life simply better by sheilamarie.sevilla@gmail.com


By clicking Ok on
the same drop
down box, you start
the recording
process of your
macro

Making your life simply better by sheilamarie.sevilla@gmail.com


Step 4:

Perform all actions that you want


to include in your macro. Click
Use Relative Reference button if
you want your macro to be
recorded with actions relative to
the initial selected cell.

Making your life simply better by sheilamarie.sevilla@gmail.com


When done, click
the Stop
Recording button
either here
or here

Making your life simply better by sheilamarie.sevilla@gmail.com


Well done, you just
created your first macro!

Making your life simply better by sheilamarie.sevilla@gmail.com


Bonus tutorial!!!

How to run macro using excel 2007

Making your life simply better by sheilamarie.sevilla@gmail.com


After creating macro, you
can run it in two ways

Making your life simply better by sheilamarie.sevilla@gmail.com


If you assign a shortcut key
when you create the macro,
you can type that key
sequence to run your macro
In my previous tutorial, I use lowercase “n”.

 so in a new worksheet I will type in CTRL + n

Making your life simply better by sheilamarie.sevilla@gmail.com


Alternatively,
click the
Macro button
on the
Developer Tab

Making your life simply better by sheilamarie.sevilla@gmail.com


From the macro
dialog box,
choose the
macro you want
to execute &
click Run

Making your life simply better by


sheilamarie.sevilla@gmail.com

Potrebbero piacerti anche