Code Samples

Save Email Attachments (but don’t delete them from message)

Save Email Attachments (but don’t delete them from message)

The following code works in Outlook 2000 and up. It saves the attachments from selected messages but does not delete the attachments from the message(s). Copy and paste the code from this page into your ThisOutlookSession project. To do this, click in the text box, Select All using Ctrl+A, Ctrl+C to copy. In Outlook,...
Read More »

Save and Delete Attachments from Outlook messages

The following is the Save Attachment code sample from Teach Yourself Outlook in 24 Hours. Frank modified the code to break it into a single call for each mail item so you can use it with a rule to filter incoming mail. Frank's code modification (page 2) Augusto modified Frank's code "in order to avoid...
Read More »

Remove the To field from an Outlook message form

Sometimes we get some interesting questions and the solution, while not useful to everyone, is worth mentioning. This is one of those questions. "I must use the BCC most of the time because of confidentiality reasons. I have made mistakes a couple of times when I entered the email addresses of more than one...
Read More »

“Always reply using HTML” code sample

See Outlook's Reply Format for reasons why you shouldn't change the format. Originally posted as a comment in Tip 434: Change Reply Format August 2007This code sample was checked (by me) against Outlook 2007 and 2010.  Others report that it works with Outlook 2003.To switch this code to always use plain text, locate and...
Read More »

Get Internet Header code sample for Microsoft Outlook

The following is the Get Internet Header code sample from Teach Yourself Outlook in 24 Hours. If you prefer installing a ready-to-use add-in, try PocketKnife Peek. Copy and paste the code from this page into your ThisOutlookSession project. To do this, click in the text box, Select All using Ctrl+A, Ctrl+C to copy. In...
Read More »

Outlook Daily Tips by Email

*  Your Email Address:

Resources

Ask questions and share your knowledge in Outlook Forums.

More Outlook and Exchange articles available at Outlook and Exchange Solutions Center

Follow me on:

Follow @Outlooktips on Twitter   Join Outlooktips on Facebook



Subscribe to our Exchange Messaging Outlook weekly newsletter

*  Email Address: