Automatically fill out Document Propertities from a text field box

  • Thread starter Thread starter Bill Hughes
  • Start date Start date
B

Bill Hughes

Greetings,

Goal:

To fill out the document title in a text field box in a protected form then
run a macro to bring up the document properties and copy the text into the
document properties title field.

Problem:

The Document Properties are read only in VBA.
The Document Properties dialog (Word Basic.FileProperties) is read only when
opened in a protected form.
Opening the Document Propertites from an autoopen macro (Word
Basic.FileProperties) are read only.

Any suggestion would be greatly appreciated. I have almost given up.
 
Run a macro on exit from the field that contains the following code:

With ActiveDocument
.BuiltInDocumentProperties(wdPropertyTitle) =
..FormFields("Title").Result
End With


--
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, originally posted via msnews.microsoft.com
 
Back
Top