PC Review


Reply
Thread Tools Rate Thread

Automatically fill out Document Propertities from a text field box

 
 
Bill Hughes
Guest
Posts: n/a
 
      26th Oct 2009

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
 
Reply With Quote
 
 
 
 
Doug Robbins - Word MVP
Guest
Posts: n/a
 
      27th Oct 2009
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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Is there a way to get Word 2007 to automatically prompt the user to fill out a document summary when saving a new document? Jay Freedman Microsoft Word New Users 0 6th Jan 2011 04:18 AM
Re: Is there a way to get Word 2007 to automatically prompt the user to fill out a document summary when saving a new document? Suzanne S. Barnhill Microsoft Word New Users 0 5th Jan 2011 02:28 AM
field in one to automatically fill in deusy Microsoft Access Forms 0 22nd Apr 2009 04:59 PM
Automatically fill field from data in another field (same table) sd_eds Microsoft Access 0 21st May 2008 01:53 PM
automatically look up and fill field Connie Microsoft Access Getting Started 5 29th Mar 2004 10:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:13 PM.