0% found this document useful (0 votes)
29 views10 pages

Tosca Black Gradient Abstract Project Presentation - 20250415 - 184622 - 0000

The document provides an overview of macros in Microsoft Excel, detailing their purpose in automating repetitive tasks and the two main types: recorded and VBA macros. It explains the processes for recording, running, and editing macros, along with best practices and limitations to consider. The summary emphasizes the ease of use for non-coders and the importance of following security measures when using macros.

Uploaded by

Tasnim Siddique
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)
29 views10 pages

Tosca Black Gradient Abstract Project Presentation - 20250415 - 184622 - 0000

The document provides an overview of macros in Microsoft Excel, detailing their purpose in automating repetitive tasks and the two main types: recorded and VBA macros. It explains the processes for recording, running, and editing macros, along with best practices and limitations to consider. The summary emphasizes the ease of use for non-coders and the importance of following security measures when using macros.

Uploaded by

Tasnim Siddique
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/ 10

Macros

and
Automati
on
By : Owais Siddique
Roll no: A-1
Contents
1. Introduction to Macros
2. Recording Macros
3. Running Macros
4. Editing Macros
5. Best Practices and Limitations
6. Hands-on Activity
7. Summary
Introduction
to Macros
• Macros are a set of recorded actions that
automate repetitive tasks in software like
Microsoft Excel. For example, if you always
format a sales report the same way, a macro can
do it for you with one click.
• Businesses use macros to:
• Save time
• Reduce manual errors
• Standardize repetitive tasks
• There are two main types of macros:
• Recorded Macros – created by performing actions
in Excel
• VBA Macros – written manually in Visual Basic for
Applications (VBA)
Recording
Macros
To record a macro in Excel, you first
need to enable the Developer tab.
Then:
1. Click “Record Macro”
2. Name your macro (use something
meaningful)
3. Choose where to store it
4. Perform the task
5. Click “Stop Recording”
After this, your actions are saved as a
macro.
Example: You record a macro that formats
columns, sets bold headers, and applies
borders to a table.
Running
Macros
Once a macro is recorded, you can run it
anytime. Here’s how:
Go to the Developer tab and click
“Macros”
Choose the macro you want and click
“Run”
You can also assign it to a button on the
sheet for quick access
Shortcuts or keyboard keys can be used
too

Security Tip:
Always run macros from trusted sources.
Excel might block macros for safety.
Editing
Macros
Macros can be edited using the VBA
Editor:
Open the macro in Developer → Visual
Basic
You’ll see code that starts with Sub
MacroName() and ends with End Sub
You can change cell references, add
custom messages, or loops

Example:
Range("A1").Value = "Hello" – this line
puts "Hello" in cell A1
Best Practices
and Limitations
Best Practices:
• Use clear and meaningful names for your macros
• Add comments in the code for clarity
• Always test your macro on a sample file
• Keep your code simple and clean
Limitations:
• Macros may not work across all systems (e.g., .xlsm files
may not open in Google Sheets)
• Macros can pose security risks if used from unknown
sources
Summary
Let's
recap
• Macros help automate repetitive tasks
in Excel
• You can record a macro without
knowing code
• VBA allows you to customize and edit
macros
• Always follow best practices to avoid
errors and security issues
References
Excel VBA Programming for Dummies – Michael Alexander & John
Walkenbach

Microsoft Support: https://support.microsoft.com

TutorialsPoint – Excel Macros Guide:


https://tutorialspoint.com/excel_macros
Thank
You

You might also like