0% found this document useful (0 votes)
42 views

CFM Final

The document discusses macros in Excel and how they can be used to automate repetitive tasks by recording a series of steps and playing them back with a single button click. It provides examples of how macros can save time by reducing manual formatting and explains the basic steps for creating a macro by recording actions, naming the macro, assigning a shortcut key, and storing it for future use. The document also notes that macros can be modified later using VBA if an incorrect step was recorded or changes are needed.

Uploaded by

GAME OVER
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

CFM Final

The document discusses macros in Excel and how they can be used to automate repetitive tasks by recording a series of steps and playing them back with a single button click. It provides examples of how macros can save time by reducing manual formatting and explains the basic steps for creating a macro by recording actions, naming the macro, assigning a shortcut key, and storing it for future use. The document also notes that macros can be modified later using VBA if an incorrect step was recorded or changes are needed.

Uploaded by

GAME OVER
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

MACROS IN EXCEL

SUBMITTED TO:- SUBMITTED BY:-


Hari Raghav Bhargava Sir Akshat Amarwani
Hitesh Ahuja
Jeodeep Singh
MBA (DS) PART 1
HOW??
• It is one of the most underrated feature.
• A macro is a piece of programming code that runs in Excel environment and helps
automate routine tasks.
• In a layman's language, a macro is a recording of your routine steps in Excel that
you can replay using a single button.
• It helps in saving the time by reducing repeated number of steps.
• With Excel VBA you can automate tasks in Excel by writing so called macros
IMPORTANCE OF MACROS

• Let's say you work as a cashier for a water utility company.


• Some of the customers pay through the bank and at the end of the day, you are
required to download the data from the bank and format it in a format that
meets your business requirements.
• You can import the data into Excel and format.
• The following day you will be required to perform the same ritual.
• It will soon become boring and tedious.
• You can use a macro to record the steps of:-
• Importing the data.
• Formatting it to meet your business reporting requirement.
STEPS FOR CREATING MACROS
• Macros can be created as follows:-
• Highlight the text required and navigate to the View tab and select the click the button in
the top right corner of your screen that looks like a spreadsheet with a paper named as
Macros.

• Click on the tiny arrow under the Macros icon to get the following drop-down menu.
• Create a name for your macro. Spaces are not allowed, but you can use an underscore
instead.
• Select a shortcut key. Be sure to choose a letter not already being used as a shortcut key
as it will replace the original (i.e., don’t use Ctrl+Z unless you want to lose your shortcut
for Undo). By using Shift, you can expand your options (i.e., you could use Ctrl+Shift+Z
instead).

• Choose where to store your macro. Usually, you’ll want to store your macro in This
Workbook. If you want it to be available whenever you use Excel, select Personal Macro
Workbook from the drop down menu.

• Type a brief description about what your macro will do in the Description box.
• Click OK.
• The macro recording has begun, and now it’s time to perform the actions
you want to record.
• When you’re done, press Stop Recording button.

Excel’s Record Macro dialog box with


sample selections.
• But what if while recording a macro a wrong step is recorded or there is a
requirement of modification in macro previously recorded.
• It can be done by using Macro VBA under the Developer Option.

You might also like