Applies To
Outlook for Microsoft 365 Outlook 2024 Outlook 2021 Outlook 2019 Outlook 2016

You use Visual Basic for Applications (VBA) to create or edit macros in Outlook.

Create or edit a macro

To create or edit a macro by using Visual Basic for Applications (VBA), do the following:

  1. On the Developer tab, choose Macros. See Show the Developer tab to learn how to display the Developer tab.

  2. In the Macro dialog box, type a name for the macro.

  3. Click Create to open Visual Basic for Applications (VBA).

Run a macro

For information about how to run a macro in Outlook, see Run a macro in Outlook.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.