The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples
Use an Excel macro to create appointments in subcalendars in Outlook. To use, type the appointment data, including the calendar name, into the spreadsheet then run the macro. The macro creates appointments in the correct calendar folder.
How to create a list of the folders in Microsoft Outlook data files. This code works with any data file in the Outlook profile.
One often requested feature that is missing in older versions of Outlook is ability to insert a date and time stamp into the body of Outlook items. Beginning with Outlook 2007, Word's insert Date & Time button was added to Outlook's Insert tab; older versions will need to a custom form or an add-in to
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.
Use PowerShell to search for Contacts with a value in a default or custom Contact field. While you can do a more complicated search within Outlook, you will need to use PowerShell (or VBA) if you want to search for a value in a custom field.
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.
Step-by-step instructions you can use to delete or hide the default folders (such as the junk email and suggested contacts folders) that Microsoft Outlook creates in your data files.
How to hide extra Contact folders, left from previously linking contact sources with Outlook.com accounts, so they aren't visible in Outlook or on smartphones.
If you need clickable links in a custom form, you can use VBScript code and a Label field or Command buttons to make clickable links.
Tighter security on Outlook Custom forms breaks VBScript in the forms and some controls. Set a registry key to enable these features.
Anyone who has a lot of meetings can understand this user's request: the ability to limit the number of meetings users can schedule with him each day by making Free/Busy appear busy.
How to use an Outlook macro to move or delete messages containing spammy keywords.
How to get a count of the messages you have selected in Outlook, using a macro or copy and paste.
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 VBA to watch for new appointments added to the calendar and copy them to a second calendar. This is useful if you are syncing with a second calendar and only want some items synced. New: watch for updates to the original appointment and change the copied appointment.