Get in Touch
 Duration 21 hours

Course Outline

Macros

  • Documentation and modification of macros
  • Association of macros with forms, toolbars, and keyboard shortcuts

VBA Environment

  • Visual Basic Editor configuration and interface options
  • Management components
  • Keyboard shortcuts
  • Optimization of the development environment

Introduction to procedural programming

  • Procedures: Function and Sub definitions
  • Data types
  • Conditional logic: if ... then ... elseif ... else ... end if
  • Case statement implementation
  • Loop structures: for ... loop while, until
  • Loop structures: for ... next
  • Loop control instructions: break (exit)
  • Array processing

Quoted string

  • String concatenation methods
  • Type conversion mechanisms (implicit and explicit)
  • Processing features for quoted strings

Visual Basic

  • Data exchange with spreadsheets (Cells, Range objects)
  • User interface interactions (InputBox, MsgBox)
  • Variable declaration standards
  • Variable scope and lifecycle management
  • Operator hierarchy and priority
  • Module options configuration
  • Development of custom functions for sheet integration
  • Object-oriented concepts: objects, classes, methods, and properties
  • Code security protocols
  • Protection against code tampering and preview security

Debugging

  • Step-by-step processing analysis
  • Locals window utilization
  • Immediate window operations
  • Breakpoints and Watches
  • Call Stack inspection

Error handling

  • Error classification and prevention strategies
  • Run-time error capture and management
  • Control structures: On Error Resume Next, On Error GoTo

Excel Object Model

  • The Application Object
  • Workbook object and Workbooks collection management
  • Worksheet Object and Worksheets collection management
  • Core objects: ThisWorkbook, ActiveWorkbook, ActiveCell
  • Selection object operations
  • Range collection management
  • Cells object manipulation
  • Status bar data display
  • Performance optimization via ScreenUpdating
  • Time measurement using the Timer method

Event handling in VBA

  • Definition of events
  • Event response mechanisms and handler creation
  • Execution of Event Handlers
  • Handling of frequent system events

VBA Forms

  • Development of custom forms
  • Programmatic invocation of forms
  • Integration of forms within spreadsheets

Requirements

  • Proficiency in spreadsheet operations, including fundamental knowledge of references, ranges, and sheets
  • Prior experience in VBA is not required for developing macros or VBA code

Audience

  • Data Analysts

Number of participants


Price per participant

Testimonials (5)

Upcoming Courses

Related Categories