• Outlook User
  • Exchange Admin
  • Office 365
  • Outlook Developer
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
    • Common Problems
    • Outlook BCM
    • Utilities & Addins
    • Video Tutorials
    • EMO Archives
    • Outlook Updates
    • Outlook Apps
    • Forums

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

Search PDF Attachments and Forward

This macro uses Adobe Acrobat, not Reader or other PDF applications. This run a script macro will open an attached PDF file, look for a keyword and if found, forward the attachment. If the message you are forwarding contains external content, you may need to respond to a security dialog. In this case, you will  

Save Selected Email Message as .msg File

A VBA code sample to save one or more selected messages to your My Documents folder as .msg files, using the received date and time as the filename.

Change the Business Card layout using BusinessCardLayoutXml

How to quickly apply a business card layout to all Outlook contacts so they all use one layout.

Macro to add domains to the Safe Sender list

A user wanted to add domains to the Safe Senders list in Outlook, but the 'not junk' options added addresses, not domains. Sub WriteToJunkList() Dim objApp As Outlook.Application Dim ns As Outlook.NameSpace Dim objMail As MailItem Dim strDomain As String Dim strAddress As String Set objApp = Application Set objMail = objApp.ActiveExplorer.Selection.Item(1) strDomain = Right(objMail.SenderEmailAddress,  

VBA: Change the From Account on Replies

A user wanted to always reply to messages sent to one account using another account. He also wanted to remove his address from the recipient list.

How to change the From field on incoming messages

How to use Redemption to change the sender's name field on messages.

Use VBA to move messages with attachments

Use a run a script rule or an ItemAdd macro to look for messages with attachments. When the attachment is a specific file type, do something with the message.

Set a reminder when accepting a meeting request

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.

Dismiss reminders for past calendar events

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.

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

Automatically block off time before and after meetings

Use a macro to automatically add travel time to new meetings on your Outlook calendar.

Foward a Message and CC the Original Recipients

A visitor to the Microsoft Answers forum asked about forwarding a message and automatically CCing it to the original recipients.

Open All 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.

Add Attachments and Set Email Fields During a Mail Merge

Use an ItemSend macro to set fields on email merges and include attachments.

Next Page »

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

Latest EMO: Vol. 25 Issue 5

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

  • Popular
  • Latest
  • Week Month All
  • Adjusting Outlook's Zoom Setting in Email
  • How to Remove the Primary Account from Outlook
  • Security Certificate Warning in Microsoft Outlook
  • Moving Outlook to a new Windows computer
  • Save Sent Items in Shared Mailbox Sent Items folder
  • Create rules that apply to an entire domain
  • Move an Outlook Personal Folders .pst File
  • Meeting Requests and Appointments are Off by One Hour
  • To Cc or Bcc a Meeting Request
  • Create a rule to delete mail after a number of days
  • Filter messages containing spam or offensive words
  • Count Selected Messages
  • Creating an AND rule in Outlook Rules
  • Search PDF Attachments and Forward
  • Restore Outlook's Classic Permissions Dialog
  • Outlook iCloud Error 0x800706ba
  • Using Yahoo and AOL accounts in Outlook
  • Insert Emoji using VBA
  • Outlook error: Something is wrong with your data files
  • Outlook Windows Store Registry
Ajax spinner

Newest Code Samples

Filter messages containing spam or offensive words

Count Selected Messages

Creating an AND rule in Outlook Rules

Search PDF Attachments and Forward

Insert Emoji using VBA

Change Insight's Focus Time Appointments

Enable Automatic Replies (OOF) using a macro

Clean up the Junk Email folder

Use VBA to Scan to Email

Delete folders using a macro or PowerShell

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.

Office Update History

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

Translate

Windows 10 Issues

  • iCloud, Outlook 2016, and Windows 10
  • Better Outlook Reminders?
  • Coming Soon to Windows 10: Office 365 Search
  • Outlook Links Won’t Open In Windows 10
  • BCM Errors after Upgrading to Windows 10
  • Outlook can’t send mail in Windows 10: error Ox800CCC13
  • Missing Outlook data files after upgrading Windows?

Outlook 2016 Top Issues

  • The Windows Store Outlook App
  • Emails are not shown in the People Pane (Fixed)
  • Calendars aren’t printing in color
  • The Signature or Stationery and Fonts button doesn’t work
  • Outlook’s New Account Setup Wizard
  • BCM Errors after October 2017 Outlook Update
  • Excel Files Won’t Display in Reading Pane
  • 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

Convert to / from Outlook

  • Converting Messages and Calendar or
    Address books
  • Moving Outlook to a New Computer
  • Moving Outlook 2010 to a new Windows computer
  • Moving from Outlook Express to Outlook

Recover Deleted Items

  • Recover deleted messages from .pst files
  • Are Deleted Items gone forever in Outlook?

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

Contact Tools

Data Entry and Updating

Duplicate Checkers

Phone Number Updates

Contact Management Tools

Sync & Share

Share Calendar & Contacts

Synchronize two machines

Sharing Calendar and Contacts over the Internet

More Tools and Utilities for Sharing Outlook Data

Access Folders in Other Users Mailboxes

View Shared Subfolders in an Exchange Mailbox

"Live" Group Calendar Tools

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Outlook BCM | 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 © 2021 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.