VBA: Getting Started with VBA in Excel
Leverage Excel’s VBA tool for operations, macros, and debugging. Learn to format cells, manage sheets, and utilize FormatConditions object.
Skill level
BeginnerTime to complete
Approx. 2 hoursCertificate of completion
YesPrerequisites
None
About this course
Excel's VBA can be a powerful tool useful for a multitude of purposes if you know how to leverage its capabilities, debug issues, and mitigate for specific limitations. In this introductory course, you'll begin by using subroutines in VBA to perform operations. You'll then define functions and reference and edit cell ranges and Excel sheets with VBA. After that, you'll invoke subroutines with relative cell references, record macros in Excel, and debug macros in VBA. You'll insert columns and sheets from VBA and format cells based on a condition in VBA both manually and using a FormatConditions object. Finally, you'll illustrate how clearing formatting using a FormatConditions object will only clear formatting created using a FormatConditions object, not by using if-else conditionals.
Learning objectives
- Discover the key concepts covered in this course
- Customize excel menus to display developer features, enter the vba console, identify the default macro settings in the trust center, create an auto-open macro, display a message-box from vba, associate the auto-open macro with an excel workbook, and save that workbook as a macro-enabled (.xlsm) workbook
- Create an auto-close macro, contrast the working of the auto-open and auto-close macros, compare functions and sub-routines in vba, create a function that accesses the user name using the excel object model, invoke that function from a worksheet cell, access and modify the contents of the active cell from vba, use cell references with cell addresses from vba, and invoke subroutines using the macros>run menu

How it works
Expert-led videos
In this course, you'll watch videos created by industry-leading experts for some of the biggest tech companies in the world. They'll cover key concepts, go through sample applications, prepare you for industry certifications, and more. Watch on any device — whenever and wherever you want — to learn at your own pace. Reviews from learners
- Very well put together as usual. I learn so much from each experience with Codecademy. I can't explain how satisfied I am with this institution.David WVerified Learner
- Everything Codecademy offers is useful for all software developers.Fidan MVerified Learner
- I thought that I would never be able to learn to code but Codecademy has made it very easy. I just love it!Adyan HVerified Learner
Our learners work at
How To Tell If You’re “Proficient In Excel” & How To Get Better

Seeing “proficient in Microsoft Excel” listed on a job description can be confusing, even if you regularly use the Microsoft spreadsheet software. Considering the vast uses for Excel, how can you tell if you’re truly “proficient” enough to be considered for a role?
For starters, read the job description closely. If Excel proficiency is listed as a “required” technical skill, then it’s safe to assume it’s an Excel-heavy role with little room to fake it or learn on the job. But if the job description categorizes it as a “preferred” or “desired” skill, then you might be more qualified than you think.
Join over 50 million learners and start VBA: Getting Started with VBA in Excel today!
StartLooking for something else?
Related courses and paths
- Create complex Excel user interfaces with VBA. Learn form validation, complex controls usage, and secure email sending via VBA.
- Intermediate.1 hour
- Master VBA in Excel for pivot tables, charts, and financial data. Learn to automate tasks in MS Access, run SQL queries, and set up event handlers.
- Advanced.2 hours
- Learn how to build spreadsheets and analyze and visualize data with Microsoft Excel.
- With Certificate
- Beginner Friendly.1 hour
Browse more topics
- Data analytics3,255,780 learners enrolled
- Code foundations8,597,473 learners enrolled
- Computer science7,093,845 learners enrolled
- Web development5,773,621 learners enrolled
- Data science5,376,445 learners enrolled
- Python4,351,040 learners enrolled
- For business4,150,572 learners enrolled
- JavaScript3,233,247 learners enrolled
- IT3,198,648 learners enrolled
Unlock additional features with a paid plan
Portfolio projects
Create professional projects you can share with recruiters to showcase your skills and experience.Job-readiness checker
Evaluate how well you meet the requirements for any job description based on your skills and experience.Certificate of completion
Earn a document you can share with your network to prove that you’ve completed this course.
