Prerequisites | Excel advanced or equivalent |
Objectives | - Understand the parameters of VBA programming for Excel.
- Create projects with functions and procedures.
- Create programming modules with a user interface.
- Automate the input of spreadsheets.
|
Teaching Method | Lectures - Demonstrations - Directed and individual exercises |
Contents | Recording macros - Starting the recording
- Understanding the structure of macros
- Storing macros
- Knowing how to move macros
- Using relative and absolute references
|
| Introduction to programming - Using the Visual Basic help
- Writing procedures
- Use of variables
- Controlling the flow of the program
- Calling procedures
- Workshop
|
| Responses to user actions - Adding event-driven procedures
- Using events
- Using objects, properties and methods
- Using the active element
- Workshop
|
| Data validation - Data validation without code
- Data validation with code
- Workshop
|
| Use of debugging tools - Testing the project
- Executing step by step
- Using breakpoints
- Using the Run window
- Workshop
|
| Handling runtime errors - Types of errors
- Adding error handlers
- Workshop
|
| Making loops in the code |