Course Code: vbaexcel
Duration: 21 hours
Prerequisites:
  • Ability to work with a spreadsheet, basic knowledge (references, ranges, sheets, ...)
  • VBA background knowledge is not required to create macros or VBA code

Audience

  • Data Analysts
Overview:

It is an introduction to procedural programming in VBA. Training allows you to gain a strong foundation for further learning and VBA environment.

This instructor-led, live training (online or onsite) is aimed at data analysts who wish to use VBA in Excel for automating tasks.

By the end of this training, participants will be able to:

  • Record and edit macros as required.
  • Write procedures using data from the sheet.
  • Create your own functions.
  • Handle an event (opening worksheet cell update etc.) by means of the handler.
  • Create a form.

Format of the Course

  • Interactive lecture and discussion.
  • Lots of exercises and practice.
  • Hands-on implementation in a live-lab environment.

Course Customization Options

  • To request a customized training for this course, please contact us to arrange.
Course Outline:

Macros

  • Recording and editing macros
  • Assigning macros to forms, toolbars, keyboard shortcuts

VBA Environment

  • Visual Basic Editor and its options
  • Management components
  • Keyboard Shortcuts
  • Optimizing the environment

Introduction to procedural programming

  • Procedures: Function Sub
  • Data types
  • The if statement ... then ... elseif ... else ... end if
  • Case statement
  • Loops for ... loop while, until
  • Loop for ... next
  • Instructions loop break (exit)
  • Array processing

Quoted string

  • Combining quoted strings (concatenation)
  • Conversion to other types of (implicit and explicit)
  • Features processing quoted strings

Visual Basic

  • Download and upload data to a spreadsheet (Cells, Range)
  • Download and upload data to the user (InputBox, MsgBox)
  • The declaration of variables
  • The extent and lifetime of variables
  • Operators and their priorities
  • Options modules
  • Create your own functions and use them in a sheet
  • Objects, classes, methods and properties
  • Securing code
  • Security code tampering and preview

Debugging

  • Processing step
  • Locals window
  • Immediate window
  • Traps - Watches
  • Call Stack

Error handling

  • Types of errors and ways to avoid
  • Capturing and handling run-time errors
  • Structures: On Error Resume Next, On Error GoTo

Excel Object Model

  • The Application Object
  • Workbook object and a collection of Workbooks
  • Worksheet Object and Collection Worksheets
  • Objects ThisWorkbook, ActiveWorkbook, ActiveCell
  • Object Selection
  • Collection Range
  • Object Cells
  • Display data on the status bar
  • Optimization using ScreenUpdating
  • The time measurement by the method Timer

Event handling in VBA

  • What is an event?
  • Responding to an event and create an event handler
  • Triggering Event Handlers
  • Service frequently occurring events

VBA Forms

  • Create your own forms
  • Calling a form from code
  • Use the forms in the sheet
Sites Published:

United Arab Emirates - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Qatar - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Egypt - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Saudi Arabia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

South Africa - Visual Basic for Applications (VBA) in Excel - Introduction to programming

中国 - Visual Basic for Applications (VBA) in Excel - Introduction to programming

香港 - Visual Basic for Applications (VBA) in Excel - Introduction to programming

澳門 - Visual Basic for Applications (VBA) in Excel - Introduction to programming

台灣 - Visual Basic for Applications (VBA) in Excel - Introduction to programming

USA - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Österreich - Visual Basic für Applications (VBA) in Excel - Grundlagen

Schweiz - Visual Basic für Applications (VBA) in Excel - Grundlagen

Deutschland - Visual Basic für Applications (VBA) in Excel - Grundlagen

Czech Republic - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Denmark - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Estonia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Finland - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Greece - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Magyarország - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Ireland - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Luxembourg - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Latvia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

España - Visual Basic para Aplicaciones (VBA) en Excel - Introducción a la Programación

Italia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Lithuania - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Nederland - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Norway - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Portugal - Visual Basic for Applications (VBA) in Excel - Introduction to programming

România - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Sverige - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Türkiye - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Malta - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Belgique - Visual Basic for Applications (VBA) in Excel - Introduction to programming

France - Visual Basic for Applications (VBA) in Excel - Introduction to programming

日本 - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Australia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Malaysia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

New Zealand - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Philippines - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Singapore - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Thailand - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Vietnam - Visual Basic for Applications (VBA) in Excel - Introduction to programming

India - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Venezuela - Visual Basic para Aplicaciones (VBA) en Excel - Introducción a la Programación

Polska - Visual Basic for Applications (VBA) w Excel - wstęp do programowania

United Kingdom - Visual Basic for Applications (VBA) in Excel - Introduction to programming

South Korea - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Pakistan - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Sri Lanka - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Bulgaria - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Bolivia - Visual Basic para Aplicaciones (VBA) en Excel - Introducción a la Programación

Indonesia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Kazakhstan - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Moldova - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Morocco - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Tunisia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Kuwait - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Oman - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Slovakia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Kenya - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Nigeria - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Botswana - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Slovenia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Croatia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Serbia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Bhutan - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Nepal - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Uzbekistan - Visual Basic for Applications (VBA) in Excel - Introduction to programming