Share via

DOCPROPERTY field - options for "Name"

Anonymous
2020-01-02T18:42:58+00:00

Where can I find a list of the options for the "Name" parameter of the DOCPROPERTY field?  The Help package offers none.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Charles Kenyon 167.8K Reputation points Volunteer Moderator
    2020-01-02T19:02:26+00:00

    The Name parameter is the name of the Document Property you want to reference.

    There are a number of document properties built into Word documents and you can create your own. Sharepoint can also add properties that respond to this field.

    If you are using one of the properties you can find under Quick Parts, you might as well use that instead of a DocProperty field. It is quicker and you can change the property by typing in the content control. Repeating Data Using Document Properties Content Controls and Other Mapped Content Controls

    Look under File Info. On the top right should be a drop-down for properties allowing you access to advanced properties. A dialog will pop up. Some of the built-in properties are shown on the summary tab. Custom ones would be under the Custom tab.

    You could compile a list using a macro. See https://wordmvp.com/FAQs/MacrosVBA/MixedDocProps.htm.

    The following is a list of the built-in properties. Some are read-only.

    Title

    Subject

    Author

    Keywords

    Comments

    Template

    Last author

    Revision number

    Application name

    Last print date

    Creation date

    Last save time

    Total editing time

    Number of pages

    Number of words

    Number of characters

    Security

    Category

    Format

    Manager

    Company

    Number of bytes

    Number of lines

    Number of paragraphs

    Number of slides

    Number of notes

    Number of hidden Slides

    Number of multimedia clips

    Hyperlink base

    Number of characters (with spaces)

    Content type

    Content status

    Language

    Document version

    Not all of these are accessible using the DocProperty field. The ones shown in the dialog box can be displayed in the field. Some can only be reached using vba.

    If you were using any that have spaces in the names, you would need to enclose the name parameter in quotation marks.

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-01-03T18:15:33+00:00

    Nice reply!  The list of built-in properties was just what I was looking for, and I learned a couple of new tricks from the links your included.

               Thanks,  Bob

    Was this answer helpful?

    0 comments No comments