The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples
Use a macro to forward Outlook email messages that are waiting for a reply after a number of days.
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 change the Outlook option to show either the number of unread messages or the total number of messages in a folder.
This macro uses the OpenSharedItem method to import messages, appointments, or contacts stored in the Windows File System back into Outlook folders.
How to use VBA to create a search folder for messages sent to and from the sender of the selected message. VBA code sample included.
How to use an Outlook macro to apply a frequently used view to a folder instead of using the Change View command.
Forgetting appointments because you don't see the reminder? Let Outlook read the reminders to you! You can use the same method to read the subject of incoming mail.
Although Outlook VBA doesn't include a paste from clipboard function directly, you can use the MSForms dataobject to transfer the clipboard contents to a string which is then called from VBA.
How to use VBA to 'do something' in Outlook's non-default folders.
How to use VBA to create a list of your Outlook categories and their assigned colors. For Microsoft Outlook 2007 and up.
How to run macros triggers by reminders, update rules using macros, and more.
How to use a macro to run Outlook's rules on demand or triggered by a reminder.
Use an Application Startup macro to run Outlook's client side rules automatically.
Use a simple VBScript to remove PST files from the default profile when Outlook is closed. Use the script when Outlook is open to remove the PST files from the current profile.
It's not hard to image this scenario: you create a custom view, everything is just the way you like it. Then you accidentally sort by a different column. Outlook saves the changes and your perfect view is ruined. In the early versions of Outlook, users were presented with a "Do you want to save changes?"