Build your own macros in Excel and write simple Visual Basic code. This course covers:
Record and edit macros
Understand the Object Model
Write Visual Basic routines
Reuse & adapt existing code
Microsoft Excel Macros & VBA Training Course Content
Course Objectives
Course Duration
Who is this Course for
Course Prerequisites
Macros and Visual Basic
The Power of Excel:
Knowing Your Tools:
The Developer Tab / Macro Toolbar
Macro Security
Adding a Trusted Location
Overview of Recording, Storing, and Running a Macro
Understanding the VB Editor
Recording Macro Basics
Examining Recorded Macro Code:
Using the VB Editor and Help
Optional Parameters
Defined Constants
Properties Can Return Objects
Using Debugging Tools to Figure Out Recorded Code
Referring to Ranges with Excel VBA
Ranges:
The Range Object
Named Ranges
Use the Cells Property to Select a Range
Using the Cells Property in the Range Property
Use the Offset Property to Refer to a Range
Use the Resize Property to Change the Size of a Range
Use the CurrentRegion Property to Select a Data Range
User-Defined Functions in Excel VBA
Functions:
Creating User-Defined Functions
Useful Custom Excel Functions
Looping and Flow Control in Excel VBA
Looping and Flow Control:
Using Variables in the For Statement
Variations on the For…Next Loop
Exiting a Loop Early After a Condition Is Met
Nesting One Loop Inside Another Loop
VBA Loop: For Each
VBA Loop : Do Loops
Flow Control: Using If…Then…Else
Flow Control: Using Select Case
Event Programming in Excel VBA
Event Programming:
Levels of Events
Using Events
Event Parameters
Enabling Events
Workbook Events
Worksheet Events
UserForms in Excel VBA
Userforms in Excel:
Input Boxes
Message Boxes
Programming the Userform
Userform Events
Programming Controls
Using Basic Form Controls