Logical Operations

Excel VBA Macros: Custom Functions and Structures

Ends soon: Gain next-level skills with Coursera Plus for $199 (regularly $399). Save now.

Logical Operations

Excel VBA Macros: Custom Functions and Structures

Bill Rosenthal

Instructor: Bill Rosenthal

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
7 hours to complete
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
7 hours to complete
Flexible schedule
Learn at your own pace

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.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

January 2026

Assessments

1 assignment

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

Build your subject-matter expertise

This course is part of the Programming and Data Wrangling with VBA and Excel Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
  • 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

Bill Rosenthal
Logical Operations
70 Courses758 learners

Offered by

Explore more from Business Essentials

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Coursera Plus

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