View Single Post
  #2  
Old February 1st 07, 02:02 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Inserting customized information in an Outlook template

Word mail merge can handle the body and to. For the subject, though,you'd have to write your own code to create Outlook items, set the subject, set the body. The simplest way I know to do that is to create and save an Outlook form template .oft file that contains the message you want to send with placeholders for the information you want to customize. You can then use Application.CreateItemFromTemplate to create a new message and Replace() to replace each placeholder with your custom text.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Sare" wrote in message ...
I want to customize an Outlook message template by changing information in
the To and Subject lines and the body of the message. Is there a way to do
that similar to mail merge in Word?

Ads