Note: This project was forked from cavo789/vba_outlook_save_pdf. It just has some updated instructions and resolves an issue I was having with the VBA.
Elevate your Outlook experience: seamlessly convert and save emails as PDFs directly to your disk with our macro.
Imagine effortlessly saving one or multiple emails from your Outlook inbox directly as PDFs with just a few clicks. This guide introduces a custom-built macro that integrates with your Outlook client, enabling you to save selected emails into a designated folder on your hard drive. Whether you're archiving important correspondence or organizing project-related emails, this tool simplifies the process, allowing for up to 250 emails to be saved as PDFs in a swift operation.
Transform your Outlook into a powerful email-to-PDF converter in a few simple steps:
-
Integrating the VBA Code:
- Activate the Visual Basic Editor in Outlook by pressing
ALT-F11. - Navigate to Menu Bar -> Insert, then choose "Module" to create a new module.
- Obtain the
module.basscript from here and paste it into the newly created module. - Exit the Visual Basic Editor.
- Activate the Visual Basic Editor in Outlook by pressing
-
Adding a Custom Button to the Ribbon:
- Customize your Outlook Ribbon by right-clicking it and selecting
Customize The Ribbon. - In the "Choose commands from:" dropdown, select Macro.
- Add a
New Tab(with a New Group within it) on the right side. - Locate
Project1.SaveAsPDFfilein the command list, select it, and hit theAddbutton. - Confirm your changes by clicking OK.
- Customize your Outlook Ribbon by right-clicking it and selecting
-
Customizing Your Ribbon (Optional):
- Personalize the name of the new ribbon tab for easy access.
Prerequisite: Ensure Microsoft Word is installed on your computer for the macro to function.
- Select the Emails: Choose one or multiple emails you wish to save as PDFs.
- Activate the Macro: Click on the
SaveAsPDFfilebutton on your custom ribbon. - Specify Save Location and Preferences: Follow the prompts to select a destination folder for the PDFs and choose whether to delete the original emails post-conversion.
- Completion: Sit back and watch as your selected emails are transformed and saved as PDFs on your disk.
This tool is freely distributed under the MIT License, promoting open and unrestricted use while encouraging contributions and modifications.
