I am making a template and it has a field named Title. I want that when the user writes the title it automatically changes the document title so I can have a constant updated title in the header. I cannot use VBA.
2 Answers
Yes you can use a mapped content control to insert a field into a document that will update the title document property when changed. You can read up on mapped content controls here.
To insert a content control mapped to the title document property in Microsoft Word 2007 and up, navigate to Insert on the ribbon, Click Quick Parts followed by Document Properties and choose Title.
Click wherever you want eventually want to manually type the title.
Click Developer tab
(If you don't have the Developer Tab, click File > Options > Customize Ribbon, then under Main Tabs select the Developer check box.)
Click XML Mapping Pane
- From the drop-down, select the Custom XML Part that ends in /core-properties.
- Right-click Title, then click Insert Content Control from the popup menu, then Plain Text (or whatever).
It will auto-populate with whatever the Document Title currently is, but it's now a "two-way street" -- if you type in there, it updates the actual Document Title.
To have that property echoed elsewhere,
- Click the cursor wherever you want it to go
- Select Insert > Quick Parts > Document Property > Title