icon icon

VBA (Visual Basic for Applications) in Microsoft Excel – principles for creating and coding algorithms as well as work automation and creating applications

icon

Training process

Training needs analysis

If you have specific requirements regarding the training programme, we will carry out a training needs analysis for you. This will guide us on which aspects of the programme should receive greater emphasis, so that the training programme meets your specific needs.

What will you gain?

icon

Create macros on your own - You will learn how to record and run Excel macros, so you can speed up repetitive work such as formatting, filtering data, and organizing worksheets with far less manual effort.

icon

Read and refine VBA code - You will see how to inspect recorded Visual Basic code, edit it, and expand existing macros, so you can tailor automation more precisely to the tasks you handle in Excel.

icon

Work safely with macros - You will learn how to open macro-enabled files, understand security settings, and avoid common startup issues, making your day-to-day work with Excel files safer and smoother.

icon

Build buttons and forms - You will create buttons for launching macros and use form controls, so you can make your automations easier to use for yourself and others without opening the VBA editor each time.

icon

Write efficient procedures - You will practice procedures, functions, data types, and VBA operators, which will let you build short scripts for calculations, text processing, and everyday Excel automation.

icon

Spot errors more quickly - You will learn to run code step by step and use the Debugger, so you can identify macro errors faster, verify how instructions behave, and improve the logic of your VBA scripts.

icon

Control sheets and ranges - You will master references to cells, ranges, rows, columns, and worksheets, so you can build macros that enter data, create sheets, and organize workbook content more effectively.

icon

Automate real work tasks - You will practice VBA on realistic examples such as file import, data grouping, table coloring, and filtering, so you can apply the skills directly in your daily work after the course.

Training programme

1. Macros in MS Excel – definition and application

Macros in MS Excel are introduced as a mechanism for automating repetitive tasks and standardizing selected activities in a workbook. The section defines what a macro is, outlines typical areas of use, and builds the context needed before recording, editing, and running VBA-based solutions.

2. Using Macros in MS Excel

Using macros in Excel means turning repeated worksheet activities into commands that can be executed consistently. Participants see how macros support everyday work organization, where they fit into the user workflow, and how they differ from manual operations performed directly in the sheet.

3. Opening a file with recorded macros

Files that contain recorded macros require a different handling model than standard workbooks. This part explains how to open such files correctly, what to look for when macros are present, and how to prepare the workbook for further inspection, editing, and controlled execution.

4. Opening and using the Visual Basic Editor

The Visual Basic Editor is the working environment for viewing, writing, and testing VBA code behind Excel actions. Participants learn how to open it, move within its interface, and use it in connection with recorded macros so they can shift from worksheet operations to code-based work.

5. Recording macros

Macro recording provides the first contact with automation by converting user actions in Excel into executable steps. Alongside the recording process itself, the section addresses opening files in a secure way and the basic security considerations connected with enabling and storing macros.

  • opening and security.

6. Relative and absolute references, changing the cell reference

Correct cell addressing determines whether a macro always points to the same place or adapts to the current position in a worksheet. The section explains relative and absolute references and shows how changing a reference affects copied actions, recorded steps, and later code behavior.

7. Analysis of Visual Basic code

Reading existing Visual Basic code helps identify what a macro does before any change is introduced. Attention is placed on following instructions, recognizing the role of individual lines, and understanding how the structure of code reflects actions performed earlier in Excel or the VBA editor.

8. Transforming recorded macros, editing and managing VBA code

Recorded macros become easier to maintain when their code is edited consciously in the VBA environment. This module covers comments, dialog boxes, toolbar layout, code coloring, enabling macros from the editor, using Debugger, keyboard shortcuts, and methods for archiving or moving code between files.

  • comments,
  • preparation of dialog boxes,
  • enabling macros from the VBA editor,
  • use of the Debugger tool,
  • creating the VBA editor window – toolbars,
  • the meaning of colors in code,
  • archiving and transferring code,
  • helpful keyboard shortcuts.

9. Creating your own button to run macros

Running a macro from the worksheet interface requires linking code to a visible control. Participants create their own button, assign a macro to it, and use form controls so routine actions can be started directly in Excel without opening the editor each time.

  • assigning a macro to a button,
  • using form controls.

10. Introduction to programming in VBA

At the programming level, the course establishes the building blocks used later in macro development and code editing. It explains procedures and functions, arithmetic, logical, comparison, and concatenation operators, as well as VBA data types for numbers, text, dates, Boolean values, and variants.

  • procedures and functions,
  • operators:
    • arithmetic,
    • logical,
    • comparison,
    • concatenation,
    • VBA data types (variables and constants):
      • numeric,
      • text,
      • logical,
      • date and time,
      • general.

11. Transforming texts

Text operations in VBA help automate work with labels, codes, and imported content stored in cells. The section covers concatenating strings, extracting specific fragments, changing letter case, and nesting functions to build more precise text transformations in formulas and procedures.

  • concatenating character strings,
  • functions retrieving a specific fragment of text,
  • functions changing the case of characters,
  • nesting functions.

12. Basic information regarding conditional statements and loops

Controlling program flow is essential when a macro must react to changing data or repeat an action many times. Participants work with If...Then...Else, Select Case, and the For, For Each, and Do loops, including step-by-step execution and early exit from a loop.

  • step-by-step execution,
  • conditional statement If ... Then ... Else If ... Else ... End If,
  • selection statement Select Case,
  • loop For ... Next,
  • loop For Each ... In ... Next,
  • loop Do ... Loop,
  • early termination of the loop with the command Exit.

13. VBA and the Excel workbook

VBA works through the Excel object model, so this part explains how worksheets, cells, ranges, rows, and columns are addressed in code. It also covers classes, collections, object hierarchy, operations on the active cell, and creating or referring to worksheets correctly.

  • objects in spreadsheets,
  • classes and collections,
  • object hierarchy in MS Excel,
  • references to cells, cell ranges, columns and rows,
  • operations on the entries of the active cell,
  • references to worksheets and creating worksheets.

14. Applying the acquired knowledge in practice (example activities that may be performed during exercises)

Practical Excel tasks are used to connect VBA basics with everyday worksheet work. Exercises focus on automating data filtering, conditional formatting, grouping, table coloring for key areas, and file import, so participants can translate code into repeatable operations on real data.

  • data filtering,
  • conditional formatting,
  • data grouping,
  • table coloring (header, footer, even and odd rows),
  • file importing.

What are the prerequisites for participating in the training?

icon

Basic Excel navigation - You should be comfortable moving around Excel, opening workbooks, working with worksheets, and entering or editing cell data without needing additional assistance.

icon

Working with data ranges - You should know how to select cells, rows, columns, and simple ranges, and perform basic actions such as copying, pasting, and applying simple data formatting.

icon

Basic formulas and functions - You should understand basic Excel formulas and functions, and know how cell references work, so moving into macros and VBA code will be much easier for you.

icon

Confidence with the interface - You should feel comfortable using tabs, the ribbon, dialog boxes, and basic program settings, because the training also includes work in the Visual Basic Editor.