SlideShare a Scribd company logo
1 of 57
XP
Troubleshooting Workbooks and
Creating Excel Applications
Chapter 10
“For every failure, there’s an alternative course of action. You just have
to find it. When you come to a roadblock, take a detour.”
-Mary Kay Ash
XP
Chapter Introduction
• Information system
 Collects, organizes, and processes data
 Communicates and distributes coordinated results
• Decision support system (DSS)
 Helps managers model business scenarios, especially
through what-if analysis
• Minimizing data-entry errors in Excel workbooks
• Documenting workbooks and troubleshooting
worksheet errors
XP
Chapter Introduction (continued)
• Automating tasks to further enhance usefulness and
reliability of workbooks
• Tools covered in this chapter: Data Validation,
Formula Auditing, Macro Recorder, Visual Basic
Editor
XP
Tools Covered in this Chapter
• Data Validation
• Formula Auditing
• Macro Recorder
• Visual Basic Editor
XP
Level 1 Objectives:
Preparing Error-Free Workbooks
• Plan an Excel application
• Validate data entry
• Protect workbooks
• Document workbooks
XP
Planning an Excel Application
• Workbooks designed so others can use them
• Usually a decision support system
 Support decisions by allowing what-if analysis and
other types of data analysis
• Typically provide an easy-to-use interface
 Custom buttons
 Clearly written documentation
 Instructions for entering data and performing
calculations
XP
Planning an Excel Application
XP
Controlling Data-Entry Errors
Data validation
tool
• Creates rules that define what data is
valid in a particular cell
• Ensures that data entered in a cell
meets specified criteria
Validation rule • Specifies type of data that is appropriate
• Specifies range of acceptable values
Input message • Identifies kind of data user should enter
Error alert •Displays a message of varying severity
XP
Validating Data Using
the Data Validation Tool
1. Set up the data validation rule
2. Create the input message
3. Specify the error alert style and message
XP
Setting Up a Data Validation Rule
XP
Setting Up a Data Validation Rule
XP
Setting Up a Data Validation Rule
XP
Setting Up a Data Validation Rule
XP
Creating an Input Message
XP
Specifying an Alert Style
and Message
XP
Specifying an Alert Style
and Message
XP
Circling Invalid Data
This tool finds and
marks cells containing
data that do not meet
validation criteria
XP
Protecting Workbooks
• Ways to protect workbooks
 Lock cells so users cannot change contents
 Hide cells so users cannot see them
 Specify which actions users can perform
 Prevent a worksheet from being deleted from a
workbook
• Select appropriate level of protection (worksheet,
workbook, file)
XP
Locking and Unlocking Cells
• To allow users to change contents of unlocked cell,
but not the contents of locked cells:
 Unlock cells you want users to change access
(Locked property of a cell)
 Protect the worksheet to engage the Locked property
of the cells
XP
Locking and Unlocking Cells
XP
Protecting a Worksheet
• Users cannot change content of locked cells
• Specify what users can do in the worksheet (format,
enter data)
• Can specify passwords that users enter a case-
sensitive password before they remove protection
XP
Protecting a Worksheet
XP
Hiding and Displaying
Rows and Columns
XP
Protecting a Workbook
• To prohibit users from adding, renaming, or deleting
worksheets in the workbook
• Secure workbook structure or its windows
 Structure (cannot insert, delete, or rename worksheets)
 Windows (Excel windows are same size and position
each time workbook opens)
• Can specify that users enter a case-sensitive
password before they remove protection
XP
Documenting Workbooks
• Documentation
 All records that describe how and why a system has
been developed and how it should be used
 Tremendous time-saver
 Can include within a workbook or print workbook
information (documentation worksheet or workbook’s
formulas)
XP
Types of Documentation
for Excel Applications
• Basic information (workbook author, date of creation,
purpose)
• Step-by-step instructions for entering data and
performing calculations
• Notes or comments that identify the source of data
• Notes or comments that define terms, explain
calculations, describe assumptions
XP
Providing a Thorough
Documentation Worksheet
XP
Including Comments
in a Worksheet
XP
Level 1 Summary
• Planning an Excel application that others can use
• Validating data entry
• Protecting a workbook
• Providing thorough documentation for users
 Documentation worksheet
 Cell comments
XP
Level 2 Objectives:
Preventing Errors in Formulas
• Audit formulas for accuracy and validity
• Evaluate and trace formula errors
• Identify, analyze, and correct errors
• Set error-checking options
XP
Auditing Formulas
• Taking advantage of more sophisticated Excel tools
that help find and respond to formula errors
 Address error messages caused by problems with the
formulas in the workbook
 Audit formulas
XP
Addressing Error Messages Caused
by Problems with Formulas
• Fix obvious errors
• Use the Error Alert button
• Examine the formula
XP
Using the Formula Auditing Tools
• Permit review of structure and behavior of formula
• Grouped on Formula Auditing toolbar
• May display tracer arrows
 Precedent cells (contain a value used in a formula)
 Dependent cells (contain a formula that refers to other
cells)
• Can result in false positives and false negatives
XP
Formula Auditing Tools
XP
Tracing and Solving
Formula Errors
XP
Tracing Errors
XP
Identifying and Correcting Errors
XP
Identifying and Correcting Errors
XP
Tracing Precedent Cells
XP
Tracing Precedent Cells
XP
Tracing Dependent Cells
Traces components of a formula that references other cells
XP
Tracing Dependent Cells
XP
Setting Error-Checking Options
XP
Level 2 Summary
• Using Excel formula auditing tools to trace and
correct errors
 Auditing formulas
 Evaluating error messages in cells
XP
Level 3 Objectives:
Automating Excel Tasks
• Plan and record macros to automate repetitive tasks
and create Excel applications
• Run and test macros
• Add buttons to a worksheet
• Edit macros using the Visual Basic Editor
XP
Understanding Macros
• Series of commands that you store and then run
when you need to perform a task
• Steps – stored as Visual Basic for Applications (VBA)
commands in the macro – are performed in sequence
when you run the macro
• To create a macro
 Use macro recorder, or
 Write from scratch by entering VBA commands in the
Visual Basic Editor
XP
Recording a Macro
• Use macro recorder to record keystrokes and mouse
actions
• Assign a macro to a shortcut key
XP
Recording a Macro
XP
Running a Macro
• Press the shortcut key assigned to the macro, or
• Use the Macro dialog box
XP
Running a Macro
XP
Creating a Macro Button
XP
Creating a Macro Button
XP
Editing a Macro
in the Visual Basic Editor
Open Visual Basic
Editor to view the
code of a macro
XP
Understanding VBA Basics
• Sub procedures
• Comments
• VBA commands the macro performs
• “End Sub” indicates end of sub procedure or macro
XP
Sample Workbook
XP
Level 3 Summary
• Automating a workbook by creating and running a
macro
• Assigning a button to the macro to make it easy to
use
• Working in the Visual Basic Editor window to edit a
macro so it runs more efficiently
XP
Chapter Summary
• Creating an Excel application that functions as a
decision support system
 Preparing error-free workbooks
 Preventing errors in formulas
 Automating Excel tasks

More Related Content

What's hot

Intermediate excel application to advanced courses
Intermediate excel   application to advanced coursesIntermediate excel   application to advanced courses
Intermediate excel application to advanced courseszavenger
 
Manual InnerSoft STATS
Manual InnerSoft STATSManual InnerSoft STATS
Manual InnerSoft STATSInnerSoft
 
InnerSoft STATS - Introduction
InnerSoft STATS - IntroductionInnerSoft STATS - Introduction
InnerSoft STATS - IntroductionInnerSoft
 

What's hot (6)

Using Vba Excel
Using Vba ExcelUsing Vba Excel
Using Vba Excel
 
Intermediate excel application to advanced courses
Intermediate excel   application to advanced coursesIntermediate excel   application to advanced courses
Intermediate excel application to advanced courses
 
Manual InnerSoft STATS
Manual InnerSoft STATSManual InnerSoft STATS
Manual InnerSoft STATS
 
Excel Crash Course
Excel Crash CourseExcel Crash Course
Excel Crash Course
 
Access 03
Access 03Access 03
Access 03
 
InnerSoft STATS - Introduction
InnerSoft STATS - IntroductionInnerSoft STATS - Introduction
InnerSoft STATS - Introduction
 

Viewers also liked

Assessment tools and interactive self-learning materials, Georgi Tuparov, Ele...
Assessment tools and interactive self-learning materials, Georgi Tuparov, Ele...Assessment tools and interactive self-learning materials, Georgi Tuparov, Ele...
Assessment tools and interactive self-learning materials, Georgi Tuparov, Ele...georgettt
 
Excelvbaplication 2010 (2)
Excelvbaplication 2010 (2)Excelvbaplication 2010 (2)
Excelvbaplication 2010 (2)hectortorrezdoc
 
44CON 2014 - Advanced Excel Hacking, Didier Stevens
44CON 2014 - Advanced Excel Hacking, Didier Stevens44CON 2014 - Advanced Excel Hacking, Didier Stevens
44CON 2014 - Advanced Excel Hacking, Didier Stevens44CON
 
Advances in ms excel
Advances in ms excelAdvances in ms excel
Advances in ms excelMohit Kumar
 
Huawei ran kpi_for_performance_managemen
Huawei ran kpi_for_performance_managemenHuawei ran kpi_for_performance_managemen
Huawei ran kpi_for_performance_managemenGeorgios Giannakopoulos
 
Owp112020 wcdma radio network capacity dimensioning issue1.22
Owp112020 wcdma radio network capacity dimensioning issue1.22Owp112020 wcdma radio network capacity dimensioning issue1.22
Owp112020 wcdma radio network capacity dimensioning issue1.22Gratien Niyitegeka
 
Training wcdma rf optimization gsm to umts
Training wcdma rf optimization gsm to umtsTraining wcdma rf optimization gsm to umts
Training wcdma rf optimization gsm to umtsAbed Abed
 
Tutorial 8: Developing an Excel Application
Tutorial 8: Developing an Excel ApplicationTutorial 8: Developing an Excel Application
Tutorial 8: Developing an Excel Applicationcios135
 
01 principles of the wcdma system
01 principles of the wcdma system01 principles of the wcdma system
01 principles of the wcdma systemkhurrambilal01
 
Top 10 3 G Radio Optimisation Actions
Top 10 3 G Radio Optimisation ActionsTop 10 3 G Radio Optimisation Actions
Top 10 3 G Radio Optimisation ActionsAbdul Muin
 
Kpi analysis
Kpi analysisKpi analysis
Kpi analysisavneesh7
 
Huawei gsm grfu introduction
Huawei gsm grfu introductionHuawei gsm grfu introduction
Huawei gsm grfu introductionsad_RNP
 
3 g huawei ran resource monitoring and management recommended
3 g huawei ran resource monitoring and management recommended3 g huawei ran resource monitoring and management recommended
3 g huawei ran resource monitoring and management recommendedMery Koto
 

Viewers also liked (18)

Assessment tools and interactive self-learning materials, Georgi Tuparov, Ele...
Assessment tools and interactive self-learning materials, Georgi Tuparov, Ele...Assessment tools and interactive self-learning materials, Georgi Tuparov, Ele...
Assessment tools and interactive self-learning materials, Georgi Tuparov, Ele...
 
Excelvbaplication 2010 (2)
Excelvbaplication 2010 (2)Excelvbaplication 2010 (2)
Excelvbaplication 2010 (2)
 
44CON 2014 - Advanced Excel Hacking, Didier Stevens
44CON 2014 - Advanced Excel Hacking, Didier Stevens44CON 2014 - Advanced Excel Hacking, Didier Stevens
44CON 2014 - Advanced Excel Hacking, Didier Stevens
 
Advances in ms excel
Advances in ms excelAdvances in ms excel
Advances in ms excel
 
Huawei ran kpi_for_performance_managemen
Huawei ran kpi_for_performance_managemenHuawei ran kpi_for_performance_managemen
Huawei ran kpi_for_performance_managemen
 
50 MS Excel Tips and Tricks
50 MS Excel Tips and Tricks 50 MS Excel Tips and Tricks
50 MS Excel Tips and Tricks
 
Owp112020 wcdma radio network capacity dimensioning issue1.22
Owp112020 wcdma radio network capacity dimensioning issue1.22Owp112020 wcdma radio network capacity dimensioning issue1.22
Owp112020 wcdma radio network capacity dimensioning issue1.22
 
Training wcdma rf optimization gsm to umts
Training wcdma rf optimization gsm to umtsTraining wcdma rf optimization gsm to umts
Training wcdma rf optimization gsm to umts
 
Huawei 3 g_capacity_optimization
Huawei 3 g_capacity_optimizationHuawei 3 g_capacity_optimization
Huawei 3 g_capacity_optimization
 
Tutorial 8: Developing an Excel Application
Tutorial 8: Developing an Excel ApplicationTutorial 8: Developing an Excel Application
Tutorial 8: Developing an Excel Application
 
WIRELES NETWORK
WIRELES NETWORKWIRELES NETWORK
WIRELES NETWORK
 
3G basic good
3G basic good3G basic good
3G basic good
 
01 principles of the wcdma system
01 principles of the wcdma system01 principles of the wcdma system
01 principles of the wcdma system
 
Top 10 3 G Radio Optimisation Actions
Top 10 3 G Radio Optimisation ActionsTop 10 3 G Radio Optimisation Actions
Top 10 3 G Radio Optimisation Actions
 
Kpi analysis
Kpi analysisKpi analysis
Kpi analysis
 
Huawei gsm grfu introduction
Huawei gsm grfu introductionHuawei gsm grfu introduction
Huawei gsm grfu introduction
 
3 g huawei ran resource monitoring and management recommended
3 g huawei ran resource monitoring and management recommended3 g huawei ran resource monitoring and management recommended
3 g huawei ran resource monitoring and management recommended
 
Lte optimization
Lte optimizationLte optimization
Lte optimization
 

Similar to Chapter.10

Excel for QA - must know
Excel for QA - must knowExcel for QA - must know
Excel for QA - must knowOlesia Hirnyk
 
6232 implementing a microsoft sql server 2008 database
6232 implementing a microsoft sql server 2008 database6232 implementing a microsoft sql server 2008 database
6232 implementing a microsoft sql server 2008 databasebestip
 
Microsoft Excel Tutorial
Microsoft Excel TutorialMicrosoft Excel Tutorial
Microsoft Excel TutorialFaHaD .H. NooR
 
VT University Live Session 3
VT University Live Session 3VT University Live Session 3
VT University Live Session 3VisibleThread
 
Microsoft excel training
Microsoft excel trainingMicrosoft excel training
Microsoft excel trainingEmilyE120
 
Intro of Key Features of eCAAT-TS
Intro of Key Features of eCAAT-TSIntro of Key Features of eCAAT-TS
Intro of Key Features of eCAAT-TSrafeq
 
Microsoft Excel 101: What you must know
Microsoft Excel 101: What you must knowMicrosoft Excel 101: What you must know
Microsoft Excel 101: What you must knowSwati Chhabra
 
Online Advance Excel & VBA Training in India
 Online Advance Excel & VBA Training in India Online Advance Excel & VBA Training in India
Online Advance Excel & VBA Training in Indiaibinstitute0
 
Advanced features of ms office packages 2
Advanced features of ms office packages 2Advanced features of ms office packages 2
Advanced features of ms office packages 2Er. Nawaraj Bhandari
 
Session 3.2 Your first excel and word automations
Session 3.2 Your first excel and word automationsSession 3.2 Your first excel and word automations
Session 3.2 Your first excel and word automationsCristina Vidu
 
Basics of excel for medical profession
Basics of excel for medical professionBasics of excel for medical profession
Basics of excel for medical professionDigital Shende
 
Data Analysis – Technical learnings
Data Analysis – Technical learningsData Analysis – Technical learnings
Data Analysis – Technical learningsInvenkLearn
 

Similar to Chapter.10 (20)

Excel for QA - must know
Excel for QA - must knowExcel for QA - must know
Excel for QA - must know
 
Microsoft Excel
Microsoft ExcelMicrosoft Excel
Microsoft Excel
 
6232 implementing a microsoft sql server 2008 database
6232 implementing a microsoft sql server 2008 database6232 implementing a microsoft sql server 2008 database
6232 implementing a microsoft sql server 2008 database
 
Microsoft Excel Tutorial
Microsoft Excel TutorialMicrosoft Excel Tutorial
Microsoft Excel Tutorial
 
VT University Live Session 3
VT University Live Session 3VT University Live Session 3
VT University Live Session 3
 
Microsoft excel training
Microsoft excel trainingMicrosoft excel training
Microsoft excel training
 
Intro of Key Features of eCAAT-TS
Intro of Key Features of eCAAT-TSIntro of Key Features of eCAAT-TS
Intro of Key Features of eCAAT-TS
 
Microsoft Excel 101: What you must know
Microsoft Excel 101: What you must knowMicrosoft Excel 101: What you must know
Microsoft Excel 101: What you must know
 
ExcelMacros.pptx
ExcelMacros.pptxExcelMacros.pptx
ExcelMacros.pptx
 
Excel2007 Power Point Slides
Excel2007 Power Point SlidesExcel2007 Power Point Slides
Excel2007 Power Point Slides
 
Online Advance Excel & VBA Training in India
 Online Advance Excel & VBA Training in India Online Advance Excel & VBA Training in India
Online Advance Excel & VBA Training in India
 
ExcelMacros.pptx
ExcelMacros.pptxExcelMacros.pptx
ExcelMacros.pptx
 
Advanced features of ms office packages 2
Advanced features of ms office packages 2Advanced features of ms office packages 2
Advanced features of ms office packages 2
 
Session 3.2 Your first excel and word automations
Session 3.2 Your first excel and word automationsSession 3.2 Your first excel and word automations
Session 3.2 Your first excel and word automations
 
Module 3 design and implementing tables
Module 3 design and implementing tablesModule 3 design and implementing tables
Module 3 design and implementing tables
 
Basics of excel for medical profession
Basics of excel for medical professionBasics of excel for medical profession
Basics of excel for medical profession
 
Data Analysis – Technical learnings
Data Analysis – Technical learningsData Analysis – Technical learnings
Data Analysis – Technical learnings
 
Learn Excel Macro
Learn Excel Macro  Learn Excel Macro
Learn Excel Macro
 
QESUTGPfbmYH3WQF257.pptx
QESUTGPfbmYH3WQF257.pptxQESUTGPfbmYH3WQF257.pptx
QESUTGPfbmYH3WQF257.pptx
 
Chapter.08
Chapter.08Chapter.08
Chapter.08
 

More from Program in Interdisciplinary Computing (20)

Phpmysqlcoding
PhpmysqlcodingPhpmysqlcoding
Phpmysqlcoding
 
Database basics
Database basicsDatabase basics
Database basics
 
CGS2835 HTML5
CGS2835 HTML5CGS2835 HTML5
CGS2835 HTML5
 
Mysocial databasequeries
Mysocial databasequeriesMysocial databasequeries
Mysocial databasequeries
 
Mysocial databasequeries
Mysocial databasequeriesMysocial databasequeries
Mysocial databasequeries
 
CGS2835 HTML5
CGS2835 HTML5CGS2835 HTML5
CGS2835 HTML5
 
01 intro tousingjava
01 intro tousingjava01 intro tousingjava
01 intro tousingjava
 
Web architecture v3
Web architecture v3Web architecture v3
Web architecture v3
 
Xhtml
XhtmlXhtml
Xhtml
 
Webdev
WebdevWebdev
Webdev
 
Web architecture
Web architectureWeb architecture
Web architecture
 
Sdlc
SdlcSdlc
Sdlc
 
Mysocial
MysocialMysocial
Mysocial
 
Javascript
JavascriptJavascript
Javascript
 
Javascript
JavascriptJavascript
Javascript
 
Html5
Html5Html5
Html5
 
Frameworks
FrameworksFrameworks
Frameworks
 
Drupal
DrupalDrupal
Drupal
 
Database
DatabaseDatabase
Database
 
Javascript2
Javascript2Javascript2
Javascript2
 

Chapter.10

  • 1. XP Troubleshooting Workbooks and Creating Excel Applications Chapter 10 “For every failure, there’s an alternative course of action. You just have to find it. When you come to a roadblock, take a detour.” -Mary Kay Ash
  • 2. XP Chapter Introduction • Information system  Collects, organizes, and processes data  Communicates and distributes coordinated results • Decision support system (DSS)  Helps managers model business scenarios, especially through what-if analysis • Minimizing data-entry errors in Excel workbooks • Documenting workbooks and troubleshooting worksheet errors
  • 3. XP Chapter Introduction (continued) • Automating tasks to further enhance usefulness and reliability of workbooks • Tools covered in this chapter: Data Validation, Formula Auditing, Macro Recorder, Visual Basic Editor
  • 4. XP Tools Covered in this Chapter • Data Validation • Formula Auditing • Macro Recorder • Visual Basic Editor
  • 5. XP Level 1 Objectives: Preparing Error-Free Workbooks • Plan an Excel application • Validate data entry • Protect workbooks • Document workbooks
  • 6. XP Planning an Excel Application • Workbooks designed so others can use them • Usually a decision support system  Support decisions by allowing what-if analysis and other types of data analysis • Typically provide an easy-to-use interface  Custom buttons  Clearly written documentation  Instructions for entering data and performing calculations
  • 7. XP Planning an Excel Application
  • 8. XP Controlling Data-Entry Errors Data validation tool • Creates rules that define what data is valid in a particular cell • Ensures that data entered in a cell meets specified criteria Validation rule • Specifies type of data that is appropriate • Specifies range of acceptable values Input message • Identifies kind of data user should enter Error alert •Displays a message of varying severity
  • 9. XP Validating Data Using the Data Validation Tool 1. Set up the data validation rule 2. Create the input message 3. Specify the error alert style and message
  • 10. XP Setting Up a Data Validation Rule
  • 11. XP Setting Up a Data Validation Rule
  • 12. XP Setting Up a Data Validation Rule
  • 13. XP Setting Up a Data Validation Rule
  • 15. XP Specifying an Alert Style and Message
  • 16. XP Specifying an Alert Style and Message
  • 17. XP Circling Invalid Data This tool finds and marks cells containing data that do not meet validation criteria
  • 18. XP Protecting Workbooks • Ways to protect workbooks  Lock cells so users cannot change contents  Hide cells so users cannot see them  Specify which actions users can perform  Prevent a worksheet from being deleted from a workbook • Select appropriate level of protection (worksheet, workbook, file)
  • 19. XP Locking and Unlocking Cells • To allow users to change contents of unlocked cell, but not the contents of locked cells:  Unlock cells you want users to change access (Locked property of a cell)  Protect the worksheet to engage the Locked property of the cells
  • 21. XP Protecting a Worksheet • Users cannot change content of locked cells • Specify what users can do in the worksheet (format, enter data) • Can specify passwords that users enter a case- sensitive password before they remove protection
  • 24. XP Protecting a Workbook • To prohibit users from adding, renaming, or deleting worksheets in the workbook • Secure workbook structure or its windows  Structure (cannot insert, delete, or rename worksheets)  Windows (Excel windows are same size and position each time workbook opens) • Can specify that users enter a case-sensitive password before they remove protection
  • 25. XP Documenting Workbooks • Documentation  All records that describe how and why a system has been developed and how it should be used  Tremendous time-saver  Can include within a workbook or print workbook information (documentation worksheet or workbook’s formulas)
  • 26. XP Types of Documentation for Excel Applications • Basic information (workbook author, date of creation, purpose) • Step-by-step instructions for entering data and performing calculations • Notes or comments that identify the source of data • Notes or comments that define terms, explain calculations, describe assumptions
  • 29. XP Level 1 Summary • Planning an Excel application that others can use • Validating data entry • Protecting a workbook • Providing thorough documentation for users  Documentation worksheet  Cell comments
  • 30. XP Level 2 Objectives: Preventing Errors in Formulas • Audit formulas for accuracy and validity • Evaluate and trace formula errors • Identify, analyze, and correct errors • Set error-checking options
  • 31. XP Auditing Formulas • Taking advantage of more sophisticated Excel tools that help find and respond to formula errors  Address error messages caused by problems with the formulas in the workbook  Audit formulas
  • 32. XP Addressing Error Messages Caused by Problems with Formulas • Fix obvious errors • Use the Error Alert button • Examine the formula
  • 33. XP Using the Formula Auditing Tools • Permit review of structure and behavior of formula • Grouped on Formula Auditing toolbar • May display tracer arrows  Precedent cells (contain a value used in a formula)  Dependent cells (contain a formula that refers to other cells) • Can result in false positives and false negatives
  • 41. XP Tracing Dependent Cells Traces components of a formula that references other cells
  • 44. XP Level 2 Summary • Using Excel formula auditing tools to trace and correct errors  Auditing formulas  Evaluating error messages in cells
  • 45. XP Level 3 Objectives: Automating Excel Tasks • Plan and record macros to automate repetitive tasks and create Excel applications • Run and test macros • Add buttons to a worksheet • Edit macros using the Visual Basic Editor
  • 46. XP Understanding Macros • Series of commands that you store and then run when you need to perform a task • Steps – stored as Visual Basic for Applications (VBA) commands in the macro – are performed in sequence when you run the macro • To create a macro  Use macro recorder, or  Write from scratch by entering VBA commands in the Visual Basic Editor
  • 47. XP Recording a Macro • Use macro recorder to record keystrokes and mouse actions • Assign a macro to a shortcut key
  • 49. XP Running a Macro • Press the shortcut key assigned to the macro, or • Use the Macro dialog box
  • 53. XP Editing a Macro in the Visual Basic Editor Open Visual Basic Editor to view the code of a macro
  • 54. XP Understanding VBA Basics • Sub procedures • Comments • VBA commands the macro performs • “End Sub” indicates end of sub procedure or macro
  • 56. XP Level 3 Summary • Automating a workbook by creating and running a macro • Assigning a button to the macro to make it easy to use • Working in the Visual Basic Editor window to edit a macro so it runs more efficiently
  • 57. XP Chapter Summary • Creating an Excel application that functions as a decision support system  Preparing error-free workbooks  Preventing errors in formulas  Automating Excel tasks