In this course, you'll continue developing your VBA skills in Excel by creating custom functions, making decisions in code, working with variables, and performing repetitive tasks. You'll also debug VBA errors, deal with errors, and improve macro performance. Then, you'll prompt the user for more information and configure macros to run automatically.

Excel VBA Macros: Custom Functions and Structures
Ends soon: Gain next-level skills with Coursera Plus for $199 (regularly $399). Save now.

Excel VBA Macros: Custom Functions and Structures
This course is part of Programming and Data Wrangling with VBA and Excel Specialization

Instructor: Bill Rosenthal
Included with
What you'll learn
In this course, you will write VBA code to create custom functions, address errors in code, and control how and when macros run.
Skills you'll gain
Details to know

Add to your LinkedIn profile
January 2026
1 assignment
See how employees at top companies are mastering in-demand skills

Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate

There are 4 modules in this course
While VBA enables you to create macros, which automate repetitive tasks, another major use of VBA in Microsoft® Excel® is to write custom functions, which you can then use in a cell formula like you would use VLOOKUP, DSUM, and Excel's other built-in functions. The ability to create your own custom worksheet functions enables you to streamline your worksheet formulas and perform tasks that are difficult or complicated using built-in functions alone.
What's included
1 reading6 plugins
As you start developing functionality in your macros and custom functions, inevitably you'll encounter problems—procedures that don't work or don't work as you expect them to, or performance issues that make some tasks take longer than you think they should. Fortunately, there are many tools and strategies you can employ to improve your VBA code.
What's included
5 plugins
Recorded macros typically run when the user chooses to run them, and then they play back the same way each time they run. However, you may want to make your macros more flexible and diverse, pausing to allow the user to select various options regarding how the macro should run. Or you might want to make some macros even more automatic; for example, running anytime the user changes the value in a particular cell, or every time a workbook is first opened. In this lesson, you'll examine various ways to control how and when macros run.
What's included
4 plugins
You'll wrap things up and then validate what you've learned in this course by taking an assessment.
What's included
1 reading1 assignment
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructor

Offered by
Explore more from Business Essentials

Logical Operations

Logical Operations
Why people choose Coursera for their career





Open new doors with Coursera Plus
Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription
Advance your career with an online degree
Earn a degree from world-class universities - 100% online
Join over 3,400 global companies that choose Coursera for Business
Upskill your employees to excel in the digital economy
Frequently asked questions
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.
More questions
Financial aid available,

