Microsoft® Excel VBA Level 2: Branching, Looping & Custom Functions and Forms

Click Here For More Information

Microsoft® Excel VBA Level 2: Branching, Looping & Custom Functions and Forms will explore the programming capabilities of conditional branch constructs as well as repetitive looping structures. The builds will be cumulative, beginning with the core basics and expanding to include interactive message boxes to control program flow. In addition, basic error-trapping techniques will be featured.

Objective:  During the first part of this course the user will coordinate constructive code blocks that will run coherent loops controlled by conditional statements. They will also use the IF…Then…Else construct to control flow processes featuring conditional branches. Additionally, global methods for trapping program errors will be used.

  • Program Looping
    1. Creating an exit condition
    2. Using the Do Until…Loop construct
    3. Quitting a faulty loop
  • Controlling Program Flow
    1. Writing an IF…Then…Else statement
    2. Adding additional conditional branches
      1. The ElseIf statement
    3. Using interactive message boxes
  • Error Trapping
    1. The On Error statement
    2. Creating an error subroutine

This second part of the course will expose the user with the construction of custom Visual Basic functions which can be used either in programming code or spreadsheet formulas. This course will also demonstrate how to create custom dialog forms for gathering data input and returning values into the spreadsheet.

Objective:  Create functions for computing values that can be used in programming procedures or in spreadsheet operations. In addition, the user will create custom forms featuring a variety of ActiveX controls designed to return input values into spreadsheet cells.

    • Creating Custom Functions
      1. Function procedures
        1. Function arguments
        2. Using the Immediate Window for testing
        3. Working with Array Variables
        4. Writing a Select Case statement
      2. Using functions in code structures
      3. Using functions in spreadsheet formulas
    • Creating Custom Dialog Forms
      1. Exploring ActiveX controls
        1. Text boxes
        2. Combo boxes
        3. Option groups
        4. Spin buttons
        5. Command buttons

IMPORTANT INFORMATION ABOUT PARTICIPATION:  As part of our sponsorship with NASBA, we have agreed to provide at least three (3) instances of engagement per CPE hour (50 minutes).  These may come in the form of open-ended questions, hand-raising, polling, and other techniques.  You MUST answer or respond to all three opportunities to engage in order to receive credit for that CPE hour.   Knowledge Source Inc. retains these responses after all CPE classes for audit purposes.

Knowledge Source Inc. is registered with the National Association of State Boards of Accountancy (NASBA) as a sponsor of continuing professional education on the National Registry of CPE Sponsors. State boards of accountancy have final authority on the acceptance of individual courses for CPE credit. Complaints regarding registered sponsors may be submitted to the National Registry of CPE Sponsors through its website:

Course Information
  • Course Level:Advanced
  • Prerequisite:Microsoft® Excel VBA Level I: Macros; Variables and Constants or demonstrated proficiency
  • Credit:4 CPE Hours
  • Fee:$199
  • Delivery:Virtual Instructor-Led Live
  • Recommend Field of StudyComputer Software and Applications
  • Program Knowledge LevelAdvanced
  • Advanced PreparationDownload and install class files a minimum of 3 working days prior to class.
  • Refund PolicyRequests for cancellations must be submitted in writing and received by Knowledge Source Inc. five (5) days prior to the date of the event to receive a full refund (less a 10% processing fee). Refunds are not given for no-shows. Special circumstances and cancellation requests may be emailed to or by calling 919-878-7100. Refunds will be issued within 30 days after the course.

Related Courses