Primary Navigation
  • About
  • Academics
  • Continuing Education
  • Admission
  • Student Life
  • Student Services
  • Library
  • News and Events
  • Giving
Visual Basic for Applications

I.     Course Prefix/Number: CIS 208

       Course Name: Visual Basic for Applications

       Credits: 4 (3 lecture; 2 lab)

II.    Prerequisite

Recommended: CIS 103, or CAB 135 and CAB 140, ability to manage files using Windows, and MAT 070, or one year of high school algebra.

III.   Course (Catalog) Description

Course introduces programming using Visual Basic for Applications (VBA). Content includes using VBA to automate or customize operations in a Word, Excel, Access, or PowerPoint; use of the Visual Basic editor to code, compile and execute programs. Content includes working with variables, decision making, looping, functions, procedures, arrays, and debugging.

IV.   Learning Objectives

  1. Use Visual Basic for Applications to write code to automate applications
  2. Use Visual Basic editor to view, modify, and run code
  3. Declare and use variables
  4. Create and invoke sub and function procedures
  5. Use message boxes, dialog boxes, and input boxes
  6. Use decision control and looping statements to control program execution
  7. Use arrays for storing data
  8. Use error-handling statements to handle run-time errors
  9. Describe the differences between objects, properties, and methods
  10. Use Word, Excel, Access, and PowerPoint objects

V.    Academic Integrity

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.
Details of the Code of Academic Conduct can be found in the Student Handbook.

VI.   Sequence of Topics

A.    Introduction
       1.  What is Visual Basic for Applications
       2.  Difference between VB and VBA
       3.  Creating and executing macros
            a)  Macro basics
            b)  Running macros in Word, Excel, Access, and PowerPoint
            c)   Editing macros
       4.  Using Help
       5.  Working Across Applications
            a) Word
            b) Excel
            c) Access
            d) PowerPoint
       6.   Using the Visual Basic Editor
             a) Menus
             b) Toolbars
             c)  Properties
       7.   VBA terminology and syntax
             a)  Events
             b) Objects
             c)  Methods

B.    Variables and Constants
      1. Choosing names for variables
      2. Declaring a variable
      3. Choosing the scope and lifetime of a variable
      4. Data types for a variable
      5. Constants syntax and usage
C.   Custom dialog boxes   
D.   Using message boxes and input boxes
      1.    Status bar messages
      2.    Syntax
      3.    Displaying messages
      4.    Buttons
E.   Controls
      1.  Adding, renaming, moving, copying, pasting, deleting
      2.  Toolbox control properties
      3.  Working with groups of controls
F.    Decisions
      1.  If…then
      2.  If…then…else
      3.  If…then…elseif
      4.  Select case
G.   Looping
      1.  For…Next
      2.  Do…While
      3.  Do…Until
      4.  While…Wend
H.   Using and creating functions
      1.   Definition
      2.   Passing arguments to a function
      3.    Convert data functions
      4.    String functions
      5.    Mathematical functions
      6.    Date and time functions
I.   Creating Procedures
J.   Debuggging
K.   Error Trapping       
L.   Arrays
      1.  Definition
      2.  Declaring an array
      3.  Storing values
      4.  Single and Multi-dimensional
      5.  Sorting an array
      6.  Searching through an array
M.  Creating and managing files and documents
N.  Develop an integrated office solution

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, media-based, 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

A. Quizzes to be determined by instructor
B. Exams (essay, multiple choice, fill-in-the-blank) to be determined by instructor
C. Evaluation of lab exercises
D. Evaluation of other homework assignments (e.g. student presentations, research papers)

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.