How make a field for filling in docproperty Title

O

Otto Brandt

I am using word 2002.

I would like to have a field in my doc that says "Insert
document title here". When the user Inserts the title it
would go to docproperty title (that is the one when you
click File->Properties and you choose Summary tab).

Some sources claim this would work:
{ TITLE " {FILLIN "Insert..."} " }
{ TITLE {FILLIN "Insert..."} }
{INFO Title {FILLIN "Insert..."} }

They don't work for me :( . I been figthing with it for
hours :(

If you have a documet that this works in please send a copy
(or stripped down copy) to my email address. (e-mail address removed)
 
D

Doug Robbins - Word MVP

You are going to need to use a macro to assign a value to a
BuiltinDocumentProperty other than by the use of the File>Properties dialog

If you were using a formfield in a protected document, you could use

ActiveDocument.BuiltInDocumentProperties(wdPropertyTitle)=ActiveDocument.For
mFields("BMName").Result

where BMName is the bookmark assigned to the formfield.

Or with a userform containing a textbox with the name txtTitle

ActiveDocument.BuiltInDocumentProperties(wdPropertyTitle) = txtTitle.Text

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
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

Top