November 24, 2025
Microsoft 365 tools for successful side hustles and freelancers
Level up your freelance game with AI tools designed for side hustles and entrepreneurs.
Learn moreIf you use Outlook every day, you may want to consider automating some of your tasks. Learn what macros are and how you can use them and set them up in Outlook to speed up your day-to-day tasks.
Macros are lines of code that you can add to Outlook. These snippets of code allow you automate your emails, and therefore can help speed up the time that it takes to send messages. There are many ways that you can use macros. For example, you can create an Outlook macro that automatically contains a greeting and closing message to all your emails. Or you can use Outlook macros to automate entire messages. You can also use macros to automatically attach files to your email.
Spend less time organizing your life and more time enjoying it with Outlook
Learn moreTo get started on Outlook automation, you’ll need to add the Developer tab to your Outlook ribbon. To add the Developer tab:
The Developer tab should now appear in the ribbon. Next, you’ll need to add the macro code to Outlook. To add a macro, you’ll need to have a basic knowledge of coding, although you can find macro templates online that you can copy and paste into Outlook.
To add your first macro to Outlook:
Here’s an example of what a macro code in Outlook might look like. This code lets you automate an entire email:
Sub SendMail()
Dim MyEmail As MailItem
Set MyEmail = Application.CreateItem(olMailItem)
With MyEmail
.To = “
.Importance = olImportanceHigh
.Subject = “
.Body = “
.BodyFormat = olFormatHTML
.Display
End With
‘MyEmail.Send’
End Sub
To test out your macro and see what your Outlook automation will look like, press the green play button.
Create a shortcut for your macro so you can easily access them in the future. To create a macro shortcut:
If you ever want to remove this shortcut from the toolbar, simply right-click it and select Remove from Quick Access Toolbar.
Here’s another way you can find your existing macros:
To change or edit your Outlook macro settings:
From here, you have the option to:
Automating Outlook with macros can make managing your email easier. If you want to learn more ways you can simplify your Outlook experience, get tips on how you can harness the power of email filters.
The powerful productivity apps and creativity tools in Microsoft 365 just got better. Work, play, and create better than ever before with the apps you love and Microsoft Copilot by your side.
Try for free