You are on page 1of 2

Macro

A macro can be defined as the recording of a series of tasks. It’s the simplest form of
automation – show a software program the steps you follow to get something done, and the
software will follow along. When used right, macros can save you hours by automating simple,
repetitive tasks.

Marcos in Excel are written in Excel VBA (Visual Basic for Applications). This is a version of
Visual Basic (a prominent Microsoft programming language) developed specifically for use in
Office-like applications. Creating simple macros – copy a formula from one cell to another, for
instance – is fairly easy. Complicated macros require a bit more work. You’ll need to be quite
intimate with Excel VBA to automate the more complex tasks in your workflow.

Record a macro

When you record a macro, all steps that are needed to complete the actions that you want to
record are recorded by the macro recorder. On the Developer tab, in the Code group, click
Record Macro.

1. In the Macro name box, enter a name for the macro.

2. To assign a CTRL combination shortcut key to run the macro, in the Shortcut key box,
type any lowercase letter or uppercase letter that you want to use.

 NOTE    The shortcut key will override any equivalent default Excel shortcut key while
the workbook that contains the macro is open.

3. In the Store macro in list, select the workbook in which you want to store the macro.

4. To include a description of the macro, in the Description box, type the text that you
want.

5. Click OK to start recording.


6. Perform the actions that you want to record.

7. On the Developer tab, in the Code group, click Stop Recording .

Macro Benefits
 Macros offer many advantages to those who choose to use them. They reduce the possibility of
human error that increases with many, repetitive keystrokes and tasks. Macros reduce the amount
of time that must be spent performing basic computing tasks, freeing users up for more complex
problem-solving and idea-generating activities. They also make complex computations easier to
perform.

You might also like