field codes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Does anyone know where I can get a complete list of all the field codes used
in Word? Also, how do I get the company information from the Properties
dialog box to appear in my document?

Many Thanks

Andy
 
Hi Andy,

Open the Insert > Field dialog. The "Field names" list box contains all the
field types. For any particular field type, enter that keyword in the help
box at the right end of the menu bar to find a topic that describes the
syntax, switches, and examples. (The topic may not appear at the top of the
list, even if you type in exactly the title shown in the topic. We've been
beating on MS about that...)

You can also open the VBA editor, press F2 to display the Object Browser,
and look for all the constants that begin with "wdField".

To get the company name in the document, insert the field {DocProperty
Company}.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Try the Insert>Field dialog

If you select DocProperty from the list of fields in that dialog, Company is
one of the properties that can be inserted by selecting it from the list of
properties that will appear in the dialog.

--
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

Back
Top