These samples contains the basic code for working with all items in a selected folder or selected items in a folder.
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.
A user wanted to know how to remove [External] from the subject of incoming messages. My company recently instituted the policy that puts the [EXTERNAL] tag in every subject when an email is received from outside the organization. When it's only one email, it's not really an issue. However, when it turns into a thread
These macros create a list of incomplete tasks or flagged messages not marked completed. The first macro uses a filter to create a list of Tasks not marked complete and works only with the Tasks folder. The second macro checks every item in the select folder for flagged items and lists the items not marked
This macro allows you to rename attachments on incoming or outgoing messages.
After importing IMAP folders to Personal Folders or an Exchange mailbox, messages in the imported folder are hidden.
Use this code sample and function to display the Internet header of selected message in a new message form.
A user with way too many contact folders created a new profile and none of the contact folders were listed in the Address Book menu. With more than 200 contacts folders, it would take several hours to enable each folder manually. I had a macro that needed just a little tweaking to set the folders
How to choose the file path when you save an Outlook attachment or a message using a VBA macro.
Use a VBA macro to resize large images in received email.
This variation of the Resize Images in Email macro puts a border and shadow around all images in the message you are composing.
How to use PowerShell, VbScript or VBA to set Outlook to work offline.
Use a macro to clean up duplicates messages in an Outlook folder.
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 a VBA macro in Outlook to move IMAP sent items to the Sent items folder on the IMAP server.