Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Master Microsoft Excel VBA and Macros: Beginner to Advanced
Rating: 4.2 out of 5(104 ratings)
862 students

Master Microsoft Excel VBA and Macros: Beginner to Advanced

Master Excel VBA & Macros with Practical Projects. Learn Automation, UserForms, Loops, and VBA Programming
Created byHimanshu Dhar
Last updated 7/2026
English
English [Auto],

What you'll learn

  • Learn how to automate daily routine tasks within Excel
  • Learn best practices when creating macros
  • Learn to use the Macro Recorder effectively
  • Learn how to write custom VBA Macros to create more robust automation
  • Reduce manual routine tasks to the click of a button
  • Create simple solutions to complex problems by levering Excel functionality with Macros
  • Learn to create interactive Userform
  • Learn to make customized functions through VBA

Course content

1 section58 lectures5h 29m total length
  • Introduction to Macro8:57

    Learn how to use Excel VBA to automate tasks with macros, create and manage modules, and write subs in the Visual Basic Editor using Project Explorer and the Properties Window.

  • Start Macro Programming7:06

    Start macro programming using input box and message box prompts, practice variable usage, and display personalized greetings. Run and test macros with F8 and control+space shortcuts.

  • Macro Task Basic4:05

    Master Excel VBA and macros teaches building a basic macro that collects first and last names, builds a hello sentence, and shows it in a message box.

  • Methods to Refer Range6:55
  • Selection of multiple cell5:56

    Master Excel VBA and Excel macros: learn to select multiple cell ranges, distinguish between a selection and the active cell, and use range concepts to build precise selections.

  • Formatting through VBA7:18

    Format through VBA shows how to select a range, use the active cell to apply formatting, and apply colors via RGB to the chosen cells with a macro.

  • End Command in VBA6:17

    Explore using the end command in VBA to reach the bottom or far right of a worksheet by navigating range objects, selecting data, and applying offsets.

  • Offset in VBA4:49

    Explore offset in VBA to move within a worksheet, select ranges, and highlight cells using positive and negative row or column offsets, for Excel VBA and macros.

  • Task on Data Entry Automate2:14

    Create and run an Excel VBA macro to automate data entry, prompting for age, salary, and three inputs, placing them in cells and auto-incrementing the serial number.

  • Solution for the task5:11

    This lecture shows a basic vba workflow: select a sheet, use offset to add a new row, and collect name and age via input boxes, creating an automatic serial number.

  • Methods to refer to sheets8:31

    Explore how to refer to worksheets and chart sheets in Excel VBA, using sheet names and index numbers, with practical examples of activating and selecting sheets.

  • Methods related to sheets and its properties10:05

    Explore VBA sheet management: rename sheets, refer by name or index, add or delete sheets before or after a target, and control protection, visibility, and counts with message boxes.

  • Sheets related Task1:52

    Learn to build an Excel VBA macro that creates a new sheet, prompts for a name, places it at the end, and clears it for reuse.

  • Sheet Related Task Solution3:48

    Master Excel VBA and Excel macros teaches you to create a new sheet after the last one, name it, and use the last sheet index to automate sheet tasks.

  • Methods to Refer to Workbooks2:50

    Explore three methods to refer to workbooks in VBA, see how to activate and switch between workbook objects, and use workbook references inside functions.

  • Methods related to workbook3:20

    Explore workbook methods in Excel VBA by creating new workbooks, naming and saving Excel files, adjusting sheet properties, and closing workbooks while tracking unsaved changes.

  • Workbook related project10:35

    Create a VBA macro that prompts for a new workbook name, copies the existing workbook's first sheet into the new file, and saves and closes it.

  • Working with Declared Variable10:02

    Define and use declared variables in Excel VBA, enable option explicit, and learn naming rules, type checks, and debugging to prevent undeclared variables.

  • Data Types in Variable6:16

    Learn data types for variables in Excel VBA and macros, including byte, long, double, date, date time, boolean, text, and object, and how they affect storage space and use cases.

  • Object variable related project2:16

    Create a new sheet, name it with your own name, set its position, then go back to the function sheet to copy and paste it, and run the macro.

  • Project Solution3:43

    Explore a project solution that demonstrates creating and naming a new worksheet, storing it in an object variable, and referencing the sheet and its range in VBA.

  • Variable Project7:42

    Create a macro that prompts for a student name, locates it on sheet 1 with find, selects the matching cell, and displays the score 75 in a message.

  • Apply IF in VBA5:22

    Learn to use an if statement in VBA to classify scores as fail, pass, or compartment. Use thresholds below 40, 40 to 60, and 60 above with a message box.

  • AND OR in VBA8:13

    Learn how and and or work in VBA to handle multiple conditions in a macro, using score rules such as more than 40 in tests and the final exam.

  • Project related to IF1:28

    Learn to use a button to trigger a macro that creates new sheets, guided by macro recording. The lesson covers handling different sheet counts and adding more sheets as needed.

  • Solution of IF task3:03

    Learn to implement an if statement in Excel VBA, test conditions such as less than or equal to, read variables, and trigger actions with a button macro.

  • Select Case3:50

    Learn to implement select case in VBA to replace complex if logic, categorize scores, store results in variables, and build reusable functions.

  • Select Case 2nd Scenario4:50

    Explore how to use select case with range conditions in VBA, handling between 65 and 80 or 90 to 100, and compare efficiency with nested if statements.

  • Select Case 3rd Scenario8:38

    Explore Excel VBA macros with Select Case to classify months into seasons, identify date ranges, and display messages using the Month function and message boxes.

  • Understanding Loop5:39

    Learn how loops automate repetitive actions in excel vba by stepping through cells and applying simple changes, and use stop conditions or undo to halt a running macro.

  • Loop Practical example5:02

    Practice loop-based conditional formatting in Excel VBA by highlighting scores under 15 in rosy brown and scores above 50 in yellow-green across a range from start to end.

  • Loop Related Task Solution4:14

    Explore loop-based VBA tasks by reading a sheet, selecting data ranges, applying offset and index logic, and enforcing conditions with a 40 threshold to control macro flow.

  • Do While Loop2:13

    Master the do while loop in Excel VBA, compare it with other loop constructs, and learn how conditions like not equal and equals control loop execution.

  • For Loopcounter6:29

    Master using a for loop counter in excel vba to iterate cells, apply if–then conditions, and produce clear outputs. Learn how to update indices and variables for reliable results.

  • For Loopcounter Step importance3:50

    Explore for loop counter steps in excel vba, from 1 to 174, how different step values affect loop flow, and a practical task to delete all sheets.

  • For Loopcounter Step Example 26:34

    Explore for loop counter step techniques to iterate through workbook sheets, handle references, and safely delete or recreate sheets by reversing the loop to avoid omissions.

  • For Each Loop4:46

    Discover how to use a for each loop to protect all worksheets in a workbook with single password. Collect the password from the user and apply protection to every sheet.

  • For Each Project4:15

    Learn how to use a for each loop to iterate over open workbooks in Excel VBA, close unwanted workbooks, and apply conditional logic to selectively keep or close books.

  • For Each Task Solution2:41

    Explore a for each task solution to delete all sheets in a workbook in one go, while excluding a specific sheet using Excel VBA macros.

  • Loop related Task1:38

    Master Excel VBA and macros show how to use a loop to apply conditional coloring across the entire data set, using values like under 50, 20, 30–60, and over 65.

  • Loop Solution and Futher Task6:23

    Apply a for each loop across a defined range to automate data processing in Excel VBA, create new sheets, and distribute results to compartments and related tabs.

  • Loop Related Project14:52

    Master a loop related project in Excel VBA and macros by automating sheet selection, range manipulation, offset-based data transfer, and copy-paste to organize results.

  • How to create Events9:25

    Explore Excel VBA events, including workbook opening, before-close, and other actions like new sheet creation, double-click, and right-click, with message boxes, time-based cancellation, and auto-save.

  • Events Example and task3:04

    Explore how to use Excel VBA and macros to trigger actions, display message boxes, and interact with sheets and objects through practical examples.

  • Event Task Solution2:37

    Practice handling a right-click event in Excel VBA by prompting for a password, validating a stored variable against the value 1, and showing an error message if it’s wrong.

  • Sheet Specific Events3:18

    Explore excel vba sheet specific events using the selection change event on the range, color cells green when values exceed 90, and set a default password 1 2 3 four.

  • Create Function in VBA6:49

    Learn how to create your own user-defined function in Excel VBA, apply it to date formatting, and explore basic examples to format dates and compute age.

  • Function Related Task1:33

    Students learn to create a simple Excel VBA function named precision to compute asset value, using current and selling price to determine the position value for a fixed asset.

  • Function Related task Solution1:42
  • Create Optional Parameter in Function4:15

    Learn how to create an optional parameter in a VBA function, with last parameter optional by default, and handle default values and data types in Excel VBA macros.

  • VBA to control Outlook for mail9:24

    Enable the Outlook object library in Excel VBA and send mail using Outlook application, composing subject, body with signature, and attaching files.

  • Outlook Related Project5:13

    Explore how to automate Outlook mail from Excel using VBA: select and modify cells, set subject lines, and send emails step by step, handling large data sets.

  • Create Userform18:41

    Create and customize an Excel VBA userform, configure text boxes, combo boxes, and spin buttons, and wire controls with code to populate data on worksheets.

  • Create Pivot Table with VBA9:03

    Master the pivot table with VBA by automating the source data range, caching data, and generating a new sheet via a macro.

  • File System Object in VBA5:46

    Learn to use the File System Object in VBA to create and copy folders and files, handle existence checks, and control overwriting with Microsoft scripting runtime references.

  • File in FSO3:03

    Learn to use the file system object in VBA to copy a file, set destinations, and inspect file properties such as name, extension, size, and path via the immediate window.

  • FSO Practical Example7:00

    Explore a practical fso example in vba to create a folder reference, list and iterate through files, filter by extension, and copy selected files to a destination.

  • Late Binding Technique in Macro4:49

    Master late binding in macros to run without active libraries, contrasting with early binding, and learn how to manage object libraries and references for end users.

Requirements

  • Understanding of MS Excel is required

Description

Microsoft Excel VBA & Macros – Automate Excel Like a Professional

Microsoft Excel is one of the most widely used applications for data analysis, reporting, MIS, finance, accounting, and business operations. While advanced Excel skills are essential, professionals who want to work faster and handle repetitive tasks efficiently should also learn Excel VBA (Visual Basic for Applications).

VBA allows you to automate repetitive work, build custom solutions, create interactive tools, and save countless hours of manual effort. Whether you are preparing reports, cleaning data, generating dashboards, or performing complex calculations, VBA helps you complete these tasks with speed, accuracy, and consistency.

Macros and VBA work together to simplify your workflow. When you record a macro, Excel automatically generates VBA code behind the scenes. As your understanding grows, you can modify that code, write your own procedures, and build powerful automation solutions that go far beyond what recorded macros can achieve.

This comprehensive course has been carefully designed to help both beginners and working professionals master Excel VBA from the ground up. Even if you have never written a single line of code before, this course will guide you step by step through practical examples and real-world projects.

No prior programming experience is required. VBA is one of the easiest programming languages to learn because it works inside the familiar Microsoft Excel environment.

Another advantage is that no additional software is required. VBA is built into Microsoft Excel, allowing you to start learning immediately with your existing Excel installation.

Throughout this course, you will learn how to automate Excel tasks, reduce manual work, improve reporting efficiency, and create professional solutions that can significantly increase your productivity. Instead of spending hours performing repetitive operations, you will learn how to complete the same work in just a few clicks.

What makes this course different?

  • Comprehensive step-by-step practical training

  • Designed for complete beginners as well as working professionals

  • Real-world automation examples instead of only theoretical concepts

  • Learn by building practical VBA programs

  • Improve your productivity and reduce repetitive manual work

  • Understand the logic behind VBA programming in a simple manner

  • Suitable for MIS Executives, Data Analysts, Accountants, Finance Professionals, Office Executives, Students, and Business Users

Who should enroll?

  • Beginners who want to learn Excel VBA from scratch

  • MIS Executives

  • Data Analysts

  • Reporting Professionals

  • Finance and Accounting Professionals

  • Office Administrators

  • Business Analysts

  • Students preparing for jobs

  • Anyone who wants to automate Microsoft Excel

By the end of this course, you will have the confidence to write VBA code, customize macros, automate repetitive tasks, build professional Excel solutions, and dramatically improve your efficiency.

If you are ready to move beyond formulas and become an Excel automation expert, this course is the perfect place to start.

Who this course is for:

  • Who want to learn Macro in Excel
  • Who wants a career in MIS
  • Want to have a career in Data analytics and data management