The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples
Use Outlook's Rules Wizard and a Run a Script rule to autoaccept (or decline) meeting requests in Microsoft Outlook. Includes a version that checks your Free/Busy status before accepting (or declining).
Use an Outlook macro or PowerShell script to bulk delete folders from Outlook.
Use VBA to open an Outlook meeting request that was just added to the calendar after accepting the request in the Inbox. so you can set a reminder or make notes.
How to use PowerShell to export, import or merge categories in different Outlook mailboxes.
How to use VBA to create a list of your Outlook categories and their assigned colors. For Microsoft Outlook 2007 and up.
How to use VBA to create a list of your color categories then merge or restore the list to another account using a second macro.
How to create a custom field to mark messages that were responded to in Microsoft Outlook.
Add travel appointments before and after recurring appointments as recurring appointments. This code sample was written by Rory. I figured out how to create recurring appointments that match the recurrence pattern of my master appointment. Sub AddTravelToMeeting() Dim olItem As AppointmentItem, olItems As Outlook.Items Dim strTravelOut As String Dim strTravelBack As String Dim iTravelMinutesOut As
The code behind Microsoft Outlook forms is always written with the Microsoft Visual Basic Scripting Engine, better known as VBScript, a small portable language, which is also used in web pages and standalone scripts. VBScript does not support the built-in Outlook constants, such as olFolderContact. Only the constants built into VBScript, such as vbYes, are supported. For
One thing that Outlook cannot do by itself is automatically create new entries in Contacts for people you send messages to. This VBA code sample by Sue Mosher provides a way to add recipients automatically. To avoid the Outlook security prompts, it uses the Redemption library, which provides a wrapper for Extended MAPI that does
Two macros to remove reminder from appointments. The first macro removes the reminders as the appointment is created in a specific calendar folder. The other macro removes reminders from older items.
How to use create a Unified Inbox filter in Outlook 2010 or Outlook 2013 using VBA and a search query. Turn any frequently used search into a macro.
How to create a toolbar button in Outlook 2007 or Outlook 2010 to open templates and files and disable the security warning dialog that displays before the template or files opens.
These samples contains the basic code for working with all items in a selected folder or selected items in a folder.
Add categories and change to Tentative the Focus Time appointments created by the Insights feature of Office 365 Exchange Online.