In Word 2010, how can I insert a control that updates a document property when the content is edited?
Posted
by
michielvoo
on Super User
See other posts from Super User
or by michielvoo
Published on 2011-06-15T12:30:08Z
Indexed on
2012/10/19
23:08 UTC
Read the original article
Hit count: 173
word-2010
In Word 2010 you can insert document properties from the Insert ribbon. For example:
Insert > Text > Quick Parts > Document Property > Subject
If you do this a control will be added with the following placeholder text:
[Subject]
Notice the square brackets around the word Subject. These square brackets are not present in the placeholder text for manually inserted controls (which can be inserted using the Developer ribbon).
When a user opens the document, replaces the placeholder text with his own text, the document metadata is updated. This behavior is different from a field which can only be updated by first updating the metadata.
Unfortunately the range of document properties that can be added to the document is limited, and I would like to add other (custom) properties this way as well.
How can I manually insert a control that will update document metadata with the content entered in the control?
© Super User or respective owner