Custom Fields - How do I insert or prepare them

J

justagrunt

Hi,
There was once an idiots guide to creating custom fields and putting them on
a document - and I've lost it.
The microsoft help section doesn't say how and I've given up on permutations
to search.
I know you go to properties - custom - then add your fields etc.
Now how do I get those fields onto the document?
How do I create them on the document?
How do I write them keeping a format fo say Aerial Narrow 34.
Did it once can't remeber how to now.

These fields are going to be used to merge data from access.
 
D

Doug Robbins - Word MVP

I would suggest that you use DOCVARIABLE fields as they are simpler to use
than DOCPROPERTY fields from the getting the data into the associated
Variable.

ActiveDocument.Variables("varName").Value = [somethingfromAccess]

To get the formatting that you desire in the document, you would include a
\* charformat switch and apply the desired formatting to the D of
DOCVARIABLE

{ DOCVARIABLE "varName" \* charformat }

You must use Ctrl+F9 to insert the field delimiters { }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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