Visual Basic for Applications

I.     Course Prefix/Number: CIS 208

       Course Name: Visual Basic for Applications

       Credits: 4 (3 lecture; 2 lab)

II.    Prerequisite


III.   Course (Catalog) Description

Course introduces programming using Visual Basic for Applications (VBA) to automate or customize operations in Word, Excel, and Access.  The Visual Basic editor will be used to code, compile, execute, and debug programs. Content includes programming logic and writing VBA code that uses variables, looping, decision-making, functions, procedures, and SQL. Recommended:  CIS103 or CAB135 and CAB140, ability to manage files using Windows, and MAT070 or one year of high school algebra.

IV.   Learning Objectives

Upon completion of this course, the student should be able to:
  • Demonstrate how to create, execute, and debug programs using the Visual Basic for Applications programming language
  • Integrate VBA programs with Word, Excel, and  Access
  • Demonstrate how to use the Visual Basic editor to view, modify, execute, and debug programs
  • Apply the use of programming principles to VBA programs
  • Use variables
  • Develop sub and function procedures
  • Use message boxes, dialog boxes, and input boxes
  • Use decision control and looping statements to control program execution
  • Demonstrate the use the SQL SELECT statement
  • Use error-handling statements to handle run-time errors
  • Explain the difference between objects, properties, and methods
  • Develop code that will access data in one application and use it in another application


V.    Academic Integrity and Student Conduct

Students and employees at Oakton Community College are required to demonstrate academic integrity and follow Oakton's Code of Academic Conduct. This code prohibits:

• cheating,
• plagiarism (turning in work not written by you, or lacking proper citation),
• falsification and fabrication (lying or distorting the truth),
• helping others to cheat,
• unauthorized changes on official documents,
• pretending to be someone else or having someone else pretend to be you,
• making or accepting bribes, special favors, or threats, and
• any other behavior that violates academic integrity.

There are serious consequences to violations of the academic integrity policy. Oakton's policies and procedures provide students a fair hearing if a complaint is made against you. If you are found to have violated the policy, the minimum penalty is failure on the assignment and, a disciplinary record will be established and kept on file in the office of the Vice President for Student Affairs for a period of 3 years.

Please review the Code of Academic Conduct and the Code of Student Conduct, both located online at

VI.   Sequence of Topics

  1. Introduction
    1. What is Visual Basic for Applications (VBA)
    2. Difference between VB and VBA
    3. Creating and executing macros
      1. Macro basics
      2. Running macros in Excel and Access
      3. Editing macros
    4. Working across applications
      1. Word
      2. Excel
      3. Access
    5. Using the Visual Basic Editor
    6. VBA terminology and syntax
      1. Events
      2. Objects
      3. Methods
  2. Programming Logic
  3. Variables and Constants
    1. Standards
    2. Declaring a variable
    3. Choosing the scope and lifetime
    4. Data types
    5. Syntax and usage for constants
  4. Custom dialog boxes
  5. Using message boxes and input boxes
    1. Displaying messages
    2. Buttons
  6. Controls
    1. Adding, renaming, moving, copying, pasting, deleting
    2. Toolbox control properties
    3. Working with groups of controls
  7. Decisions
    1. If...then
    2. Select case
  8. Looping
  9. Using and creating functions
    1. Definition
    2. Passing arguments to a function
    3. Create new functions
    4. Built-in functions
  10. Introduction to SQL
  11. Creating Procedures
  12. Debugging
  13. Automating tasks for Office applications

VII.  Methods of Instruction

Reading, lecture, discussion, group work, demonstration of programs, hands-on exercises and projects, assignments, quizzes, and/or tests.
Course may be taught as face-to-face, hybrid or online course.

VIII. Course Practices Required

Reading: Students will be expected to read text book and research appropriate manuals as needed.
Writing:  Interactive programming requires student to be able to write screen and other instructions using clear and syntactically correct English.
Computer:  Students will use computers to create, test and debug a variety of programs.

IX.   Instructional Materials

Note: Current textbook information for each course and section is available on Oakton's Schedule of Classes.

X.    Methods of Evaluating Student Progress

Students will be evaluated on the output produced and the efficiency of the program instructions, other written assignments, quizzes, and/or exams as determined by the instructor.

XI.   Other Course Information

If you have a documented learning, psychological, or physical disability you may be entitled to reasonable academic accommodations or services. To request accommodations or services, contact the Access and Disability Resource Center at the Des Plaines or Skokie campus. All students are expected to fulfill essential course requirements. The College will not waive any essential skill or requirement of a course or degree program.

Oakton Community College is committed to maintaining a campus environment emphasizing the dignity and worth of all members of the community, and complies with all federal and state Title IX requirements.

Resources and support for
  • pregnancy-related and parenting accommodations; and
  • victims of sexual misconduct
can be found at

Resources and support for LGBTQ+ students can be found at

Electronic video and/or audio recording is not permitted during class unless the student obtains written permission from the instructor. In cases where recordings are allowed, such content is restricted to personal use only. Any distribution of such recordings is strictly prohibited. Personal use is defined as use by an individual student for the purpose of studying or completing course assignments.

For students who have been approved for audio and/or video recording of lectures and other classroom activities as a reasonable accommodation by Oakton’s Access Disabilities Resource Center (ADRC), applicable federal law requires instructors to permit those recordings. Such recordings are also limited to personal use. Any distribution of such recordings is strictly prohibited.

Violation of this policy will result in disciplinary action through the Code of Student Conduct.