You can use either CustomDocumentProperties or Document Variables.
I prefer to use Document Variables as they can only be changed through the
use of VBA, but the data stored in them can be displayed in the document by
use of a { DOCVARIABLE varname } field.
To assign a value to a document variable named varname in the active
document, you would use the following code
ActiveDocument.Variables("varname").Value = "Type here whatever it is that
you want to store in the variable."
If in that document, you had a { DOCVARIABLE varname } field, it would
(after being updated), display:
Type here whatever it is that you want to store in the variable.
Exactly what do you want to do?
--
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, originally posted via msnews.microsoft.com