The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples
Use VBA to check the subject of every message you send (new or replies) for a specific keyword. If the word is not found, add it to the subject.
These samples contains the basic code for working with all items in a selected folder or selected items in a folder.
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
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.
You can easily change the default form used for new items for any folder type except Mail folders. Although the screenshots are for contacts, the steps are the same for Calendar & Tasks. Right click on the folder name and choose Properties. Then select the new form from the General tab, When posting to this
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.
How to copy appointments from several Outlook calendars to print as one calendar. Includes code specific to Exchange server accounts that works with Resource calendars as well as other user's calendars.
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
How to assign a category to appointments automatically, as soon as they are over, using a macro with a trigger, such as the meetings own reminder or the next appointment reminder, that will kick off the macro.
Categories and flags are not available in all of my folders in Microsoft Outlook. I can use categories and flags on mail in my POP3 account but categories are not available in my IMAP account and flags are limited to one flag, no reminder. Why? The IMAP protocol doesn't support the Category and Flag properties
This macro allows you to rename attachments on incoming or outgoing messages.
How to use Len, Left, Right, Mid, and InStr to extract text from Microsoft Outlook fields and message bodies.
After importing IMAP folders to Personal Folders or an Exchange mailbox, messages in the imported folder are hidden.
New to Outlook 365: Remember Zoom Preferences. If the fonts in incoming messages are tiny (or huge), you may have a Zoom problems. I'll show you how to fix it. If you don't have an Office 365 subscription, I have a macro that will set the zoom level for you.
Use this code sample and function to display the Internet header of selected message in a new message form.