Get in Touch
 Duration 21 hours

Course Outline

Macro Management

  • Recording and modifying automated tasks
  • Determining appropriate storage locations for macros.
  • Assigning macros to user forms, interface toolbars, and keyboard shortcuts

VBA Development Environment

  • Visual Basic Editor configuration and settings
  • Keyboard shortcut definitions
  • Optimizing the development workspace

Foundations of Procedural Programming

  • Procedures: Functions and Subroutines
  • Variable data types
  • Conditional logic: If...Then, ElseIf, Else, End If
  • Select Case instruction
  • Do While and Do Until loops
  • For...Next iteration loops
  • Loop termination commands (Exit)

String Handling

  • String concatenation techniques
  • Data type conversion methods - implicit and explicit
  • Advanced string processing functions

Visual Basic for Applications Core

  • Data import and export between worksheets and VBA (Cells, Ranges)
  • User interaction via InputBox and MsgBox prompts
  • Variable declaration syntax
  • Variable scope and lifecycle management
  • Operator precedence rules
  • Module-level options
  • Creating and utilizing custom functions within worksheets
  • Object-oriented concepts: Classes, Methods, and Properties
  • Code protection strategies
  • Preventing code tampering and review procedures

Debugging Methodologies

  • Step-through execution
  • Locals window inspection
  • Immediate window usage
  • Breakpoints and Watch items
  • Call Stack analysis

Error Management

  • Common error types and prevention strategies
  • Capturing and resolving runtime exceptions
  • Control structures: On Error Resume Next, On Error GoTo label, On Error GoTo 0

Excel Object Model Architecture

  • The Application root object
  • Workbook object and the Workbooks collection
  • Worksheet object and the Worksheets collection
  • Context-specific objects: ThisWorkbook, ActiveWorkbook, ActiveCell
  • The Selection object
  • Range collections
  • Cell object properties
  • Status bar messaging
  • Performance optimization via ScreenUpdating
  • Execution timing using the Timer method

Integration of External Data Sources

  • Utilizing the ActiveX Data Objects (ADO) library
  • Establishing references to external data repositories
  • ADO core components:
    • Connection
    • Command
    • Recordset
  • Configuration of connection strings
  • Establishing connectivity to databases such as Microsoft Access, Oracle, and MySQL

Reporting and Query Execution

  • Introduction to SQL syntax and basic commands (SELECT, UPDATE, INSERT INTO, DELETE) Executing Microsoft Access queries from Excel Forms to facilitate database access

Requirements

  • Foundational proficiency with Excel features, including worksheets, formulas, data tables, and sorting or filtering functionalities
  • Practical experience in the preparation, modification, and review of reports using Microsoft Excel
  • No prior programming experience is required for this module

Target Audience

  • Analysts seeking to automate repetitive Excel workflows for government processes
  • Business professionals responsible for data management and reporting within Excel
  • Team members aiming to develop simple macros and practical VBA solutions for daily operational tasks

Number of participants


Price per participant

Testimonials (7)

Upcoming Courses

Related Categories