• Outlook User
  • Exchange Admin
  • Office 365
  • Outlook Developer
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
    • Common Problems
    • Outlook BCM
    • Utilities & Addins

Developer Samples

Slipstick Systems

These articles are in the Developer and Code Sample categories. These pages often contain only the code, with very little instructions and assume the reader has some VBA knowledge. See How to use the VBA Editor if you need help using VBA.

Additional code samples are at VBA Code Samples

Developer Samples was last modified: February 8th, 2018 by Slipstick

Macro to Add or Remove a Category

Use a macro to toggle a category on and off on a Microsoft Outlook email message.

Contact photo

Export (Save) Outlook Contact Photos

Use VBA to export a photo from a contact and save it to the hard drive. Use a second macro to add the photo to a new contact.

Powershell showing folder creation time

Use PowerShell or VBA to get Outlook folder creation date

Use PowerShell or VBA to get the creation date of a folder in Outlook desktop software.

Resend message command

Macro to Resend Sent Message

How to use a macro to resend a sent message in Outlook 2013 and Outlook 2016.

Working with All Items in a Folder or Selected Items

These samples contains the basic code for working with all items in a selected folder or selected items in a folder.

Use VBA to Create a List of Exchange GAL Members

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.

Remove [External] from Message Subject

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  

Create a list of uncompleted tasks

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  

add suffix to attachment name

Rename Outlook Attachments

This macro allows you to rename attachments on incoming or outgoing messages.

Fix the Outlook Folder Type after Exporting an IMAP Account

After importing IMAP folders to Personal Folders or an Exchange mailbox, messages in the imported folder are hidden.

Get Outlook's Internet Headers using VBA

Use this code sample and function to display the Internet header of selected message in a new message form.

Enable Contacts as Address Book using VBA

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 use Windows File Paths in a Macro

How to choose the file path when you save an Outlook attachment or a message using a VBA macro.

original and resized images

Resize images in an Outlook email

Use a VBA macro to resize large images in received email.

add border to images in an outlook email

Format Images in Outlook Email

This variation of the Resize Images in Email macro puts a border and shadow around all images in the message you are composing.

Next Page »

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 28 Issue 1

Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • WeekMonthAll
  • Adjusting Outlook's Zoom Setting in Email
  • How to Remove the Primary Account from Outlook
  • Outlook's Left Navigation Bar
  • Create rules that apply to an entire domain
  • Save Sent Items in Shared Mailbox Sent Items folder
  • Use PowerShell to get a list of Distribution Group members
  • Outlook Auto Account Setup: Encrypted Connection not available
  • Move an Outlook Personal Folders .pst File
  • View Shared Calendar Category Colors
  • Run-a-Script Rules Missing in Outlook
  • Reset the New Outlook Profile
  • Delete Old Calendar Events using VBA
  • Use PowerShell or VBA to get Outlook folder creation date
  • Outlook's Left Navigation Bar
  • Contact's Display Bug
  • Use PowerShell to get a list of Distribution Group members
  • Edit Outlook’s Attach File list
  • Outlook Error: Google Couldn't sign you in
  • Error: Message archive has reached maximum size
  • New Outlook for Windows
Ajax spinner

Newest Code Samples

Delete Old Calendar Events using VBA

Use PowerShell or VBA to get Outlook folder creation date

Rename Outlook Attachments

Format Images in Outlook Email

Set Outlook Online or Offline using VBScript or PowerShell

List snoozed reminders and snooze-times

Search your Contacts using PowerShell

Filter mail when you are not the only recipient

Add Contact Information to a Task

Process Mail that was Auto Forwarded by a Rule

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in Outlook for Windows.

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




Windows 10 Issues

  • iCloud, Outlook 2016, and Windows 10
  • Outlook Links Won’t Open In Windows 10
  • Outlook can’t send mail in Windows 10: error Ox800CCC13
  • Missing Outlook data files after upgrading Windows?

Outlook Top Issues

  • The Windows Store Outlook App
  • The Signature or Stationery and Fonts button doesn’t work
  • Outlook’s New Account Setup Wizard
  • Outlook 2016: No BCM
  • Exchange Account Set-up Missing in Outlook 2016

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Contact Tools

Data Entry and Updating

Duplicate Checkers

Phone Number Updates

Contact Management Tools

Diane Poremsky [Outlook MVP]

Make a donation

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Outlook Suggestion Box (UserVoice)

Slipstick Support Services

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Advertise | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2023 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.