getting info from txt w/o using bookmarks?

R

Rhayan

Hi all,

I have a template to make a fax (or letter), when it is first ran it checks
for a txt
file using "System.PrivateProfileString", if it doesn't exist it shows a
userform requesting user information (name, phone nr. etc.) and then put
this information in the bookmarks in my
document and store it in a txt-file.
Now i also like to create a template i can use for a mail merge, and also
use this info (from the text file) in this document. But i allready found
that it is impossible to keep you bookmarks after a mail merge, they all get
deleted.
Is there a way to still get the info form the text file in my document
without using bookmarks? Is this possible with fields?

Thanks in advance,

Rhayan
 
J

Jonathan West

Hi Rhaya,

You can put the text into custom document properties, and have it reflected
in the document using DOCPROPERTY fields. Check out the
CustomDocumentProperties collection.
 
R

Rhayan

Thank you Jonathan, it works!

Jonathan West said:
Hi Rhaya,

You can put the text into custom document properties, and have it reflected
in the document using DOCPROPERTY fields. Check out the
CustomDocumentProperties collection.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top