Field contents in AutoText

A

Alex

Hi Everyone

I already use a VBA Userform to update and change
the 'Title', 'Subject' and some Custom doc properties, and
what I would like to do is use autotext as a watermark (in
the headers and footers) that autoupdates with the
contents of the 'Title' property everytime the userform is
run.

So the question is, how do I get the contents of a doc
property field into an autotext object?

Big thank you in advance

Alex
 
H

Harold

If this is your question - how to add a document property to an AutoText
entry -
Insert a Document Property Field into a document.
Highlight the field and choose Insert -> AutoText -> New
Assign it a name.
then you can code it with something like this:
selection.TypeText "{name of the AutoText entry"
selection.Range.InsertAutoText
 

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