Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to automatically update all fields in an Outlook template (OFT)?

Status
Not open for further replies.

ngkatsaras

IS-IT--Management
Jul 28, 2004
72
US
I created an Outlook message template file (OFT), there is a pre-formatted message where the message body contains a couple of field codes as follows:

Dear {FILLIN "Recipient's name"}:

blah blah blah

Kind regards,

{FILLIN "Sender's name"}

This works fine except that whenever I open the template, the fields do not automatically prompt me to update. For now I have instructed the users to do CTRL+A then F9 which will then prompt the user to input the data to be merged into the fields. But that is not as elegant as I would like.

I found out that in a Word template file you could do a macro as follows that will automatically prompt the user for input to define the field codes:

Sub AutoNew()
ActiveDocument.Fields.Update
End Sub

However, I don't seem to be able to get that to work with the OFT file.

I also tried naming the Sub AutoOpen() but that didn't work either.

Your assistance is greatly appreciated in advance.

Kind regards,

Nick K.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top