Visual Basic for Applications
I. Course Prefix/Number: CIS 208
Course Name: Visual Basic for Applications
Credits: 4 (3 lecture; 2 lab)
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
- 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
• 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
- What is Visual Basic for Applications (VBA)
- Difference between VB and VBA
- Creating and executing macros
- Macro basics
- Running macros in Excel and Access
- Editing macros
- Working across applications
- Using the Visual Basic Editor
- VBA terminology and syntax
- Programming Logic
- Variables and Constants
- Declaring a variable
- Choosing the scope and lifetime
- Data types
- Syntax and usage for constants
- Custom dialog boxes
- Using message boxes and input boxes
- Displaying messages
- Adding, renaming, moving, copying, pasting, deleting
- Toolbox control properties
- Working with groups of controls
- Select case
- Using and creating functions
- Passing arguments to a function
- Create new functions
- Built-in functions
- Introduction to SQL
- Creating Procedures
- Automating tasks for Office applications
VII. Methods of Instruction
Course may be taught as face-to-face, hybrid or online course.
VIII. Course Practices Required
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
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
Resources and support for LGBTQ+ students can be found at www.oakton.edu/lgbtq.