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
"Bill Hughes" <bmdwih(remove this).sbcglobal.net> wrote in message
news:78A574D0-B26B-4F0B-9E87-(E-Mail Removed)...
> 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.
>
> --
> Good Luck,
>
> Bill Hughes
|