Tutorialspoint

April Learning Carnival is here, Use code FEST10 for an extra 10% off

Excel VBA Basic to Super Advance

person icon Ajay Parmar

4.4

Excel VBA Basic to Super Advance

In-depth study of Variables, for loops, do while, if statements, Collection Loops, Classes, Objects, Arrays, forms, events, Error handlers outlook, database, PPT Connectivity

updated on icon Updated on Mar, 2024

language icon Language - English

person icon Ajay Parmar

category icon Office Productivity,Microsoft,Excel VBA

Lectures -127

Resources -3

Duration -63 hours

4.4

price-loader

30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.

Course Description

In Section 1 Introduction to VBA, You will learn what is a VBA and how you can use it to automate your daily small office tasks.

  • How to do Macro recordings. edit it, run it , debug it. 

  • How to Run VBA program or delete them or give shortcut keys.

  • Know the concept of finding out the last row - blank row or non blank row of your data

  • How to select the data from top to bottom or vice versa - static and dynamic approaches with their advantages ,disadvantages over each other.

  • How to turn wrong steps into correct while recording the steps.

  • How to run a program step by step and why we need it for debugging.

  • Move from one sheet to another. What errors we can expect if sheet name changes like Subscript out of a Range error.

  • Know how to compile data from different sheets and put under one sheet using recording and with basic understanding of sheets and ranges.

In Section 2 Variables , You will start knowing what are  Variables and their importance in VBA or any programming language.

  • Introduction to Variables and their data types. How to define variables and benefit of using them.

  • Data types . Strings. Integer, Single, byte, Double , Variants - we have covered all. With amazing questions coming out from this live classes.

  • What if errors like - OverFlow and Type Mismatch come - Know the reason and of course a solution.

  • What are debugging windows -Local window

  • Why we want Option Explicit - How to declare it and what benefit it provides.

  • Frequently asked Questions in your interview related to option explicit and  Variables.

  • How to connect more than one macro using a Call key word .

  • How long a Variable remains in VBA -Scope of a Variable - Local variable, module, private level and Public or Global level variables.

In Section 3 LOOPS & IFs , You will take a deep dive into knowing every type of a loop in VBA along with IFs and Select Case statements

  • We are taking a deep dive into Loops and IF Functions with Select Case statements. You will not need to look back on Loops topic ever if you finish this course till end.

  • Detailed discussion on For Next loops - their use and significance . How to mold them in different ways and use in your projects.

  • Discussion on Do -While & Until loops from very basic level to advance.

  • Which loop is better or how about making a choice in loops over each other.

  • Learn loops using the basic and complex patterns in order to get mastery. Print numbers in asc or desc or diagonally patterns.

  • Detailed discussion on IF functions and their different syntax's. For example, Single IFs, IF AND, IF OR and Nested IFs.

  • Use of Else-IF and when to use it , How it is different from IFs without Else-IF blocks. With real time examples.

  • How to work with hundreds of conditions in one go using IFs.

  • What is a Case Select statement- How it can be an alternate to IF conditions in VBA.

  • Dangerous of running Loops on F5 mode without testing the code.

  • How to write Sub-Loops in Loops- you will find all relevant information here.

  • IF with ELSE-IF and IF without Else IF.

In Section 4 Collection LOOPS , Learn how to work the small or large data set using Workbook/Worksheet commands ,For Each Loops with practical's plus Classes -methods & properties with object browser concept.

  • Are we interested in compiling the  data from different worksheets and workbooks.

  • How to go to different workbooks and pull the data from there and compile it one place.

  • How to work with so many sheets without bothering about things - what name they have , if they will get deleted in future or if more sheets get added.

  • These collection loops make you a great programmer. in-fact, if you do not know this you can never be a great coder. Come and fall in love with them. Immensely helpful , interesting and powerful. So much fun .

  • Learn How to work with workbooks and worksheet - Open, Save, Save as, delete, rename, move, add and many more such commands.

  • How to open the workbooks, how to close one workbook, specific workbook or all opened workbooks

  • Learn how to delete or add workbooks , how to jump from one workbook to another. From activate files to editing them -we are covering all.

  • How to select or delete or protect or rename or add the worksheets in excel.

  • How to define the workbooks and worksheets in a professional manner using "Set" Keyword. What is the advantage of declaring objects as classes.

  • What happens if we declare set statements anywhere in the code. Does it allowed in vba? Detailed discussion on the proper mentioning of dim and set statements while dealing with objects and classes.

  • How VBA works when it comes to writing syntaxes. Discussion on the object hierarchy and its methods and properties.

  • Questioning rounds in a live session to students to practice more on set keyword.

  • What are collection loops and their basic syntax's - their practical use

  • Loop through worksheets, workbooks  and cells in a workbook

  • How to copy and paste the data from each of the sheets in a workbook or from different workbooks.

  • What if you want to copy the data from multiple workbooks , going to each of the worksheet and copying the data and pasting it in one single workbook. This is going to be done using collection loop.

  • What is a Dot Operator and how objects are classified in VBA. Learn about object methods and properties - What are these and what is the difference between them . Their significance in VBA.

In Section 5 ARRAYS , Learn how to do any type of complex calculations and comparisons - One /Two or multi-dimensional Arrays

  • What are arrays . Why we use them? Why they are so powerful and holds so much weightage in VBA .

  • What is their by-default index system and how we can change it using option base. 

  • What are static and dynamic arrays.

  • How to use arrays with VBA loops and if functions . They work like magic together. 

  • What is the use of Preserve word in arrays and how we can use it in projects.

  • Complete tutorial with in-depth discussion.

  • How to use split function in arrays and what are the key things to be taken care while using split in arrays.

  • Questions discussed from  VBA interview perspective as well.

  • As usual- Assignments are also added to give you confidence and to check the progress.

  • How to use Dim or Redim Statements .Their real use in projects. How to use variable value in Arrays and what is the purpose of using them in arrays.

  • How to use Split function ,one of the best function we can use in arrays. How arrays work under split function.

  • How option Base-1 works for arrays created by split function.

  • What is the use of preserve word in arrays and how we can use it to hold the values. What happens if we do not use them.

  • How and where we use them . Complete discussion on its use.

  • Vlookup use - Lookup Project using Arrays

  • Know the two or multi dimensional arrays and their use in practical situation

In Section 6 FUNCTIONS , Learn how to create UDFs and use INBUILT Functions

  • We are learning everything in detail about VBA inbuilt and User created Functions from their roots..

  • All Lectures are started from basic level and then slowly moving toward advance levels

  • Use of Inbuilt functions like Left, StrReverse, mid, find , trim, Lcase, Ucase , Date and Time etc are discussed.

  • UDFs - User defined functions in VBA - basic plus advance , both level examples.

  • Benefits of UDFs over Inbuilt functions. Many amazing projects are shared in the series.

  • Can we pass in parameters in sub routines and call Functions

  • How do we run or Call Functions from excel sheets. A mesmerizing thing to learn  and implement in your project today.

  • How to do testing of your functions like UDFs and Inbuilt VBA Functions.

  • What is the process of passing parameters from a sub routine to a function and how it is useful for us.

  • Frequently asked questions in your VBA Interview.

  • How do we use VLOOKUP in VBA at advance level project discussed. Real time project is discussed.

  • How can we use Match function with Loops and VLOOKUP to create super powerful and  wonderful practical automation.

  • My online support is always there for you.


In section 7 File And Folder, We are Learning to deal with small or large data stored in excel workbooks or text files using a library called SCRIPTING which offers us amazing classes like FileSystemObject , Folder and Files and Textstream.

  • How to go inside a folder and pick the needed files and then do the things like compiling data from them or modifying the files or moving them or deleting them.

  • Learn how to use the file-dialogs so that user can choose any folder of his or her choice and work accordingly.

  • Not just folders or Excel files -we are also going to see what to do if we have to overwrite or append the data in text files. Yes, we can even control the text files using scripting library, Very useful especially when you are dealing with big data.

  • Skip the files while running loops which you do not want. Set the filters in the extensions using file dialogs. Learn all types of file dialogs like open dialog. save as dialog, folder dialog and also why and where we can use them.

  • Customization of file dialog buttons, titles to how to open multiple files with them to make more user friendly and robust program which can be run in any machine irrespective of the drives or folder paths they have.

  • Learn to manipulate text files using scripting library. We have everything discussed here from basic level to advance level when it comes to file and folder manipulations.


In section 8 UserForms, we have covered all form controls like labels, textboxes, combo, listbox, frame, option buttons, check boxes and many more.

  • From understanding the Userform control design and properties, you shall also see the magic of userform events which are very much required to create projects.

  • All of your doubts will be answered via email or forum in 24 hours.


In section 9 Error Handlers, you shall learn Error handlers like On error resume next and goto err.

  • You shall see what are the scenarios when we already know we can have errors - VBA Errors so if we want to ignore those errors and keep continuing running the vba code, how to do that and first of all, why in first place , I will like to ignore the errors.

  • We will then learn how to use and customize a message box and input box in vba with various examples.


In section 10 Event - Self Triggered Macros, we will learn how to work with events which we write inside workbook and sheet modules.

  • Why they are called self triggered macros and what are the conditions - Events names we can go and use it for different type of jobs.

  • Learn amazing Events like - Workbook open, Sheet activate, sheet before delete, sheet change event, selection change events.

  • When one event starts calling another event and you never planned for it, how to avoid this class using public variable

  • Few projects for you to give you more confidence in Events


In Section 11 VBA Charts, we are learning about Chart automation. How to create new charts iusing VBA. We can fully automate the making of charts using VBA.

  • Learn the Chart class called Chart and see how easy it is to create the new charts.

  • The role of macro recordings plays a very important role here as most of the code we can record and later customize as per  the requirement.

  • How to work with existing charts in excel. How to go to each of them one by one and do modifications. Any type of modification like changing chart design or editing labels or chart titles etc

  • Understand the Loops importance in charts. You can loop through infinite charts using one simple collection loop.

  • Collection loops of charts - to work with multiple charts either to delete them or to edit their design, colors. You can do whatever. Even change the axis's.

  • Use of other Collection loops with chart collection loops. Loops in Loops


In section 12 VBA Pivots, you will become a master in Pivots. From making new pivots to working in existing pivots and modifying them.

  • Collection loops in PIvots - how to access pivots . How to loop pivot field items and fully control it.

  • We will learn the classes we use in Pivots to handle new pivots or existing pivots like Pivot-table and Pivot cache classes.

  • We will take a deep dive into knowing other classes as well which helps us in controlling the pivot fields and field items like pivot item class and pivot-Field class.

  • How to mix worksheet collection loops with pivot collection loops in real time projects and what are the benefits of same

  • What is the role of macro recording in making pivots and how to edit those recording if requirement changes.

  • How to work with row or column of filter pivot fields. Line-by-line explanation.


In the Last Section, we are learning how to connect PowerPoint with Excel VBA.

  • Discussing about the connectivity of Excel with PowerPoint in this advance series using Excel VBA.

  • How to copy  table data from excel and paste into PowerPoint application slides.

  • How to export charts from excel sheets to PowerPoint and paste them in one slide or more slides one by one.

  • Taking a deep dive into power-point classes like Presentation class, Slide class and shapes class. Understanding the power-point object hierarchy.

  • How every class is responsible for other class using the dot hierarchy.

  • How to work with already created PowerPoint applications and also how to create new PowerPoint applications and work with them.

  • How to resize the charts or tables images in slides and move them to the top or left or right of the slides.

  • Control which chart should go in PowerPoint using the excel sheet cells.

  • How to loop through all sides and decide which one to be deleted or used for data presentation.

  • Collection loops for slides as well as shapes. This is amazing source of learning.

  • Real time projects discussion with you to give you live exposure of working with Power-point.

  • Understanding the concept of Early Binding and Late Binding methods or techniques

  • Several highly advance level Projects for you - Fully automated and very very knowledgeable practical projects.


Who this course is for:

  • Students who want to be Business analysts or Data Analysts or VBA Developers or Marketing research analysts must take this program
  • Any Chartered Accountant or Business Sales person or Marketing executive who like to automate Excel tasks like copy paste data from different workbooks and putting the data into one file, creating own functions if not available in excel, creating the excel templates on auto mode
  • Last but not least, any Data lover or enthusiast who want to save time by not doing things manually in excel and create everything on buttons

Goals

What will you learn in this course:

  • It is divided into 5 sections - Introduction, Variables, Loops with IF, Collection Loops with Classes, Arrays & Functions - Basic to Advance

  • This Course has 20 hours super duper content for you staring from basic to advance.

  • Students will learn how to automate excel tasks with VBA from scratch. This course is from beginning to super advance level

  • Students will be able to understand VBA Fundamentals. How they can customize the syntaxes and not to be dependent on internet for any trouble shooting.

  • You will know How to record, edit , run and save Macro Recordings. What are the advantages and limitation of Macro recordings

  • You will learn every type of Loop used in VBA like For next , do while and do until loops and why loops are needed to learn. Practical examples

  • Learn about Variables and data types and why we need them, Interview related questions on Variables preparation

  • Students will be able to learn IF statements like single IF, IFAND,IFOR and IF with else if, IF without Else If. Difference between types of IFs

  • Mix IF with Loops by taking a live example case study

  • Errors like overflow, data type mismatch, argument not optional, property method not defined, subscript out of range - True meaning of these errors and solving

  • Learn about Collection Loops and take your data working on to a new level. You can learn how to work with multiple workbooks - Copy Paste data tasks so easy now

  • Learn about set key word- how to define objects using VBA Classes - Its methods and properties

  • Classes like Worksheet, Workbook, Range, Worksheet Function, Strings, Info - How to use Object Browser in VBA

  • How to use VBA Inbuilt functions and Create your own functions - User defined functions UDFs

  • Learn about the use of Arrays in VBA - the most important and versatile thing you ever want to know.

  • Every topic will have Practical example discussed in detail

Prerequisites

What are the prerequisites for this course?

  • You should know basic formulas like Text functions , Lookup functions of excel and basic knowledge of excel is required.

  • No prior programming knowledge is required. This course is for beginners and gradually turning into advance

  • Excel shortcut keys is an additional advantage like Copy, Cut & Paste and How to move from first cell to another and how to select the data using shortcut keys like ctrl+shift+down arrow keys etc

  • Excel 2007 or any higher version should be fine. VBA is compatible to all versions.

Excel VBA Basic to Super Advance

Curriculum

Check out the detailed breakdown of what’s inside the course

INTRODUCTION TO VBA
8 Lectures
  • play icon What is vba and why do we need it? 14:27 14:27
  • play icon Get familiar with vba editor important options 20:56 20:56
  • play icon Record,edit and run your first macro 26:01 26:01
  • play icon Sheets cells commands with dubug of a program 15:16 15:16
  • play icon Macro mistakes and fundametals 11:24 11:24
  • play icon Last row and data selection 18:37 18:37
  • play icon Project - how to compile data across sheets- powerful learning 32:23 32:23
  • play icon What is a personal workbook 17:17 17:17
Scope of a Variable
4 Lectures
Tutorialspoint
VBA Loops with IFs
11 Lectures
Tutorialspoint
Collection Loops and define Object/Classes
10 Lectures
Tutorialspoint
Arrays
6 Lectures
Tutorialspoint
Functions
8 Lectures
Tutorialspoint
Files and Folders
14 Lectures
Tutorialspoint
UserForms
12 Lectures
Tutorialspoint
Error Handlers
4 Lectures
Tutorialspoint
Events – Self Triggered Macros
8 Lectures
Tutorialspoint
VBA charts
5 Lectures
Tutorialspoint
VBA Pivots
9 Lectures
Tutorialspoint
Connectivity with Outlook
14 Lectures
Tutorialspoint
Connectivity with PowerPoint application
7 Lectures
Tutorialspoint
Database Connectivity
7 Lectures
Tutorialspoint

Instructor Details

ajay parmar

ajay parmar

e


Course Certificate

Use your certificate to make a career change or to advance in your current career.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
Annual Membership

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
Online Certifications

Talk to us

1800-202-0515