Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Excel VBA for Beginners
Rating: 3.8 out of 5(33 ratings)
1,136 students

Excel VBA for Beginners

the basic concepts to get started and understand EXCEL VBA however which skill level you are and automate MS Excel
Last updated 9/2016
English

What you'll learn

  • Register and reuse VBA macro in Excel
  • Create your own VBA macros in Excel
  • Understand the VBA code in Excel macros
  • Generate automated reports in Excel with VBA
  • Manipulate data in Excel with VBA
  • Format data and worksheets in Excel with VBA
  • Import and export external data from files to and from Excel using VBA
  • Understand and use the VBA editor in Excel to write macros
  • Understand the concepts of subroutines, functions, constants and variables in VBA for Excel
  • Manage errors in VBA
  • Understand and use dialog boxes e.g. msgbox and inputbox
  • create interactions between worksheets in Excel using VBA

Course content

11 sections67 lectures4h 51m total length
  • About the author1:44
  • Why VBA6:46
    • User-defined functions
    • Custom Excel functions
  • Introduction3:09
  • The prerequisites: the developer ribbon and the Excel file format5:05

    When you want to start off with VBA for Excel you need to know what you need to do first.

    First of all you need to know what a ribbon in Excel is and in particular the Developer ribbon.

    You need to make it visible and know how to use the various functions.

    The Developer ribbon is needed if you want to access the VBA editor, run and execute macros and select VBA controls to use on Excel worksheets.

    But to make VBA executable on an Excel file it is important to save this file in a particular format.

    In this lesson you will learn how to activate and use the Developer ribbon and how to save an Excel file in the right format in order to make VBA macros executable.

  • The VBA Editor: VBE7:54

    In this lesson you will get familiar with the VBA Editor.

    You will know how to access it and how to setup the skeleton of a VBA project.

    You will recognize other open projects and how to access the single modules of a project.

    You will understand where to write the VBA code to interact with Worksheets and Workbook.

    You will get familiar with the concept of VBA module

  • The concept of Macro2:56

    The concept of macro is the core of VBA for Excel.

    You will learn in this lesson what a macro is, how to generate a macro and how to execute it.

  • Record a macro6:29

    The easiest way to start off with VBA is by recording a macro.

    You will learn how to record a macro and how to read and interpret the resulting VBA code.

  • Macro Security5:37

    Macros are very important to improve Excel but they can be a critical elements if not used properly.

    In this lesson you will learn how to set up and understand the various levels of security for an Excel file which will allow different level of access and execution to the VBA macros: how to enable automatically macros, how to disable all macros per default, how to ask the user if to enable or not macros.

  • Understand the recorded VBA code9:18

    Once you recorded your macros you need to understand the recorded VBA code in order for you to customize it and produce new and more flexible routines.

    In this lesson we will go through the code of a recorded macro to understand the commands behind the code and how to modify the code in order to adapt the same for other similar situations.

  • Modify the code of a recorded macro6:33

    After understanding the recorded VBA code we will go through our example from the previous lesson to customize the macro to be used to format ranges or cells no matter where they are.

    The recorded macro is aimed to format some properties of a selected cell (border, background colof, etc.) and we will modify this code in order to re-use it also for other cells.

Requirements

  • basic knowledge of Microsoft Office products
  • be familiar with computers

Description

I created this corse since I have experienced during my live trainings and even from my students of other VBA courses that I released on the Internet, that most of my students are not IT-skilled people. They are just users of Excel and want to go beyond the basic functionalities of Excel and create automated report or automate daily tasks.

For this reason I have created a course with the right pace to make it clear to anyone.

In this course I start explaining what VBA is and why VBA. For example, if you are an user of Excel, e.g. in the Accounting Department, what VBA is and why you need it.

For this reason it is important to understand first of all the concept of object oriented programming and explain how Excel is an application structured in objects whose properties and actions/events can be managed, manipulated and updated using VBA.

I start with an overview of the Developer ribbon, which is the menu section where to record macros, execute macros, access the VBA editor and much more.

I will show and explain the structure of a VBA object and how to record a VBA macro.

Once recorded, I will explain how to read and interpret a VBA code and how to modify it for your goals.

I will show how to make the user interact with the data in the worksheets using userforms and how to format the reports automatically.

I have organized this course focusing on an example which is an Excel file or workbook composed of more worksheets.

At the end the user will be able to exchange data between the worksheets and import/export them to external text and binary files.

In details:

Begin with VBA: why VBA, understand the VBA editor, learn how to record and execute a VBA macro, learn to read and interpret the VBA code, modify the VBA code, modify the macro security level.

Understand the VBA code: the Excel objects and how and where to manage/edit their properties and actions/methods based on their events

The VBA project: what is a VBA project, how it is structure, the components, where to insert your code, how to set the properties of the objects

The VBA programming principles: variables, constants, functions and subroutines. What is the difference between private and public. What is a module. What are the variable types.

Interact with the data: read/retrieve data with loop instructions. Select data using conditional instructions. Strings and string functions.

Interact with the user: exchange data and information using userforms, msgboxes and inputboxes. Understand the VBA control objects on userforms.

VBA commands on worksheets: interact directly on a worksheet using control objects and directly on it and how to trigger actions and events.

Structure of data: understand arrays and their size, how to populate arrays and manage their size. The Type data structure to save data into records. Collections.

Manage external files with VBA: read and write to text and binary files.

Errors: manage errors caused by the interection of the user with Excel.


At the end you will find some exercise to improve your skill and verify your knowledge in VBA.

Who this course is for:

  • familiarity with the function and basic use of the software
  • Who is familiar with computers and the Internet
  • familiarity with Windows or Mac computers
  • Who owns a copy of Microsoft Office with Excel