How to scan a document or image and attach or embed into an Outlook email using VBA and the Windows Image Acquisition Library (WIA).
After importing IMAP folders to Personal Folders or an Exchange mailbox, messages in the imported folder are hidden.
Use a macro to write Outlook values to an Excel spreadsheet.
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 add contact information to a task or appointment body.
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.
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
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.
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.
How to use a macro to create Outlook folders from a list of folder names in a csv file.
A user wanted to set Outlook to offline/online mode automatically depending on network connection, using either PowerShell or VBScript. The VBA script at VBA to switch Outlook online/offline doesn't meet the user's need because it is not controlled externally. While Outlook doesn't have a timer, Task or Meeting reminders can trigger a macro. The VBScript
The VBScripts on this page will export or import a list of your categories for backup and importing into your Outlook desktop mailbox.
The scenario: You have several email accounts, each with their own data file and you want to empty the deleted items in every data file with one click. The solution: a macro.
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
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.