• 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
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.

work offline icon

Set Outlook Online or Offline using VBScript or PowerShell

How to use PowerShell, VbScript or VBA to set Outlook to work offline.

move duplicate messages

Delete duplicate messages using a macro

Use a macro to clean up duplicates messages in an Outlook folder.

open hylerlinks in an email automatically

Open Hyperlinks in an Outlook Email Message

Use an Outlook macro to open every hyperlink in the selected email message. A version of the macro will open hyperlinks in every message in the selected folder.

Use a macro to move Sent Items

Use a VBA macro in Outlook to move IMAP sent items to the Sent items folder on the IMAP server.

contact info added to task

Add Contact Information to a Task

Use a macro to add contact information to a task or appointment body.

scan to email using vba

Use VBA to Scan to Email

How to scan a document or image and attach or embed into an Outlook email using VBA and the Windows Image Acquisition Library (WIA).

Macro to Export Outlook Fields to Excel

Use a macro to write Outlook values to an Excel spreadsheet.

Create a Task when a Message is Flagged

Use the ItemChange event to run a macro when an Outlook item is changed. In this example, a task is created when the Quick Click Flag is clicked.

Use a Macro to Assign Messages in a Shared Mailbox

How to use an Outlook macro to move messages to a new folder or mailbox or to assign categories to the message round-robin style.

Delete Email from Specific TLDs

I'm often asked how to filter email from certain domains when at least part of the domain name changes. Outlook doesn't support wildcards in rules, so you can't filter newsletters that come from @s1.domain.com, @s2.domain.com etc, or filter spam from .info, .work or Top-level-domain. This sample macro to use with a run a script rule  

autofowarded banner

Process Mail that was Auto Forwarded by a Rule

How to identify or "do something" with a message that was auto forwarded. While the info bar in the message identified it as auto forwarded, it' only visible when the message is selected.

use a template for the autoreply

Run a Script: Send Autoreply with Date

These code samples show you how to use a run a script rule to send an auto response, including the received date and when the recipient should expect a follow up response. The first sample uses a template for the reply, the second macro replies to the incoming message.

Create Outlook Folders from a List of Folder Names

How to use a macro to create Outlook folders from a list of folder names in a csv file.

Import or export color categories

Use VBScript to Export or Import Categories

The VBScripts on this page will export or import a list of your categories for backup and importing into your Outlook desktop mailbox.

« Previous Page
Next Page »

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

Latest EMO: Vol. 28 Issue 7

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
  • Outlook's Left Navigation Bar
  • Adjusting Outlook's Zoom Setting in Email
  • How to Remove the Primary Account from Outlook
  • Save Sent Items in Shared Mailbox Sent Items folder
  • Use PowerShell to get a list of Distribution Group members
  • Create rules that apply to an entire domain
  • Move an Outlook Personal Folders .pst File
  • Remove a password from an Outlook *.pst File
  • Meeting Requests and Appointments are Off by One Hour
  • View Shared Calendar Category Colors
  • Change Appointment Reminder Sounds
  • Messages appear duplicated in message list
  • 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
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.