These samples contains the basic code for working with all items in a selected folder or selected items in a folder.
How to scan a document or image and attach or embed into an Outlook email using VBA and the Windows Image Acquisition Library (WIA).
Use a macro to automatically add travel time to new meetings on your Outlook calendar.
A visitor to the Microsoft Answers forum asked about forwarding a message and automatically CCing it to the original recipients.
Use an Outlook macro to open every hyperlink in the selected email message. A version of the macro will open hyperlinks in every message in the selected folder.
Use an ItemSend macro to set fields on email merges and include attachments.
Use an Outlook macro to create a list of users in the Exchange Global Address List or a list of member of a distribution group in the GAL.
Use a macro to import data from a CSV or Excel xlsx file to create meeting requests or appointments.
Use VBA to select multiple calendars in overlay mode. Can deselect iCloud calendars using this code. Code Sample included.
How to use a VBA macro to insert a predefined text into the subject field of a new messages. Method works with any Outlook item type.
Use an Outlook macro to save the selected message as a text file, or save the selected messages in a single text file.
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.
Use a macro to clean up duplicates messages in an Outlook folder.
After importing IMAP folders to Personal Folders or an Exchange mailbox, messages in the imported folder are hidden.
A major complaint about Outlook's conversation view is the inability to split and merge conversations. While Outlook doesn't offer the capability, you can use a macro to merge or split conversations.