More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

share code 02-Sep-2010 22:32

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

Code level: beginner    Code area: Basic Outlook Printer Friendly Version
Title: Sending A Fax to the Active Contact
Description: This Macro very simply collects the active Contact (Thank you to Sue Mosher) and Populates merge feilds in a fax coverpage. Thank you to Sue for the GetCurrentItem Function and Thank you to John Mulvaney for assistance with the rest.
Date: 02-Sep-2003  01:18
Code level: beginner
Code area: Basic Outlook
Posted by: Mark Moser
Body:
All 4comments
Page [ 1  
  07-Sep-2003  19:37   
Once you have the oDoc document populated, you could print it, display it, or save and attach it to an Outlook message addressed to a fax recipient.
  28-Jul-2004  04:27   
I created a word form using the above code, it works fine.
However, now I'm looking to remove empty lines when the field result is ""
  20-Aug-2004  16:02   
I get an error '13' in Set MyContact = GetCurrentItem() ??
  20-Aug-2004  17:14   
So, is the current item a contact? This would be a better way to handle this situation:

Dim MyContact As Object
Set MyContact = GetCurrentItem()
If MyContact.Class = olContact Then
     ' continue the procedure here
End IF
Page [ 1  
Post your comment



name        email