Outlook Developer

Articles and VBA code samples for Microsoft Outlook. Suitable for beginners and intermediate users.

Foward a message and CC the original recipients

Foward a message and CC the original recipients

A visitor to the Microsoft Answers forum asked about forwarding a message and automatically CCing it to the original recipients.

Create tasks for outlook.com and a second Tasks folder

Create tasks for outlook.com and a second Tasks folder

This VBA code sample is the result of a discussion in the Microsoft Answers forum. Because of recent changes at Outlook.com, tasks, appointments, and contacts do not support attachments. You can add attachments to the items in Outlook 2013, but the attachments are hidden.

Shortcuts to open Outlook folders

Shortcuts to open Outlook folders

Outlook doesn't support creating shortcuts to folder on the Quick Access toolbar (QAT) or ribbon, but you can put macro on the QAT or ribbon that opens a folder.

Moving Deleted Items

Moving Deleted Items

Moving deleted items from the Deleted Items folder using Quick Steps or a macro.

Save email message as text file

Save email message as text file

An Outlook macro to save the selected message as a text file.

Create Tasks from Email and move to different Task folders

Create Tasks from Email and move to different Task folders

Use this macro to create tasks from email messages and move them to different task folders.

Select multiple calendars in Outlook

Select multiple calendars in Outlook

Use VBA to select multiple calendars in overlay mode. Code Sample included.

Use a macro to open the Calendar to appointment date

Use a macro to open the Calendar to appointment date

Macro to replace the Go To Date feature of Outlook's Calendar. From an open appointment, run the macro. The calendar opens to the date of the appointment.

Paste formatted text using VBA

Paste formatted text using VBA

Use Microsoft Word’s ‘use source formatting’ paste command to paste formatted text into an Outlook item body.

Save Outlook email as a PDF

Save Outlook email as a PDF

How to use VBA to save selected Outlook messages as PDF files.