How To Insert Variables Into Documents!? (It Must Be Easier Thank It's Seeming....)

S

Steve Jones

I am trying to create a few variables in my Word documents.
Basically, the idea is to define a DocNumber, a Version, and a
DraftNo. Then I want to reference these variables in headers and
footers, and on the title page. Looking through Word's help, it seems
I'm supposed to going into Visual Basic, and define variables there,
which gets into a realm of programming that I don't want to deal with.

I thought maybe there would even be pre-defined variables along these
lines, to which I could assign values, but I don't seem to find any
such thing under field codes. So the question is, is there a *simple*
way to create my variables, and assign values (and change the values
easily).

If there is not a simple way, can someone spell out the complicated
way to do this, in detail, for my simple mind?

Thanks in advance for all replies.
(e-mail address removed)
 
M

Martha

(e-mail address removed) (Steve Jones) wrote ...
I am trying to create a few variables in my Word documents.
Basically, the idea is to define a DocNumber, a Version, and a
DraftNo. [...] Looking through Word's help, it seems
I'm supposed to going into Visual Basic, and define variables there,
which gets into a realm of programming that I don't want to deal with.
I thought maybe there would even be pre-defined variables along these
lines, to which I could assign values, but I don't seem to find any
such thing under field codes.

Word has exactly what you want, but you're looking under all the wrong
terms. What you want are custom document properties. Go to the File
menu and select Properties. Go to the last tab. You'll see a list of
property names Word thinks you might want, but you're not restricted
to them; if you want a property with a different name, just type it in
on top, and give it a type and a value below.

To use your properties in the document, go to Insert - Field, select
Document Information in the Categories list (on the left), and select
DocProperty under Field Names (on the right). Click on the Options
button, find your property in the list and click "Add to Field". Click
OK twice.
 

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