A
Andi
Hi all,
I have the following code for a "Run Letter" feature on my custom
contact form. All works great. I've come across a need to include
multiple instances of cross-references to the same bookmark in the Word
templates during this process. I have already added the
cross-references to the appropriate bookmarks in the letter template,
but the information from the Outlook form does not seem push out to the
letter where the cross-references exist. How do I go about doing that?
Can anyone help?
Thanks,
Andrea
Case "05 Confidentiality Agmt"
objWord.Documents.Add ("S:\Outlook Letter Templates\05 Confidentiality
Agmt.dot")
' Go to the bookmark in the Word Document and enter the company name.
objWord.ActiveDocument.Bookmarks("CompanyName").Select
objWord.Selection.TypeText Item.CompanyName
' Mailing address includes street address, city, state and zip code.
objWord.ActiveDocument.Bookmarks("MailingAddress").Select
objWord.Selection.TypeText Item.MailingAddress
objWord.ActiveDocument.Bookmarks("Reference").Select
I have the following code for a "Run Letter" feature on my custom
contact form. All works great. I've come across a need to include
multiple instances of cross-references to the same bookmark in the Word
templates during this process. I have already added the
cross-references to the appropriate bookmarks in the letter template,
but the information from the Outlook form does not seem push out to the
letter where the cross-references exist. How do I go about doing that?
Can anyone help?
Thanks,
Andrea
Case "05 Confidentiality Agmt"
objWord.Documents.Add ("S:\Outlook Letter Templates\05 Confidentiality
Agmt.dot")
' Go to the bookmark in the Word Document and enter the company name.
objWord.ActiveDocument.Bookmarks("CompanyName").Select
objWord.Selection.TypeText Item.CompanyName
' Mailing address includes street address, city, state and zip code.
objWord.ActiveDocument.Bookmarks("MailingAddress").Select
objWord.Selection.TypeText Item.MailingAddress
objWord.ActiveDocument.Bookmarks("Reference").Select