Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2006

Tip: Looking for answers? Try searching our database.

Word Form help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MarkN - 31 Jul 2006 10:03 GMT
Hello,

I use Word to create user guides and I use DOCPROPERTY fields to store
changeable information.

I have a user form that appears on open and what I want is a text box on the
form to display one of the DOCPROPERTY values. The user can then accept the
current DOCPROPERTY value or change. Either way, when the user clicks OK,
whatever is in the text box is stored as the DOCPROPERTY

Thanks in advance,
MarkN
Jezebel - 31 Jul 2006 10:33 GMT
You have a little misunderstanding of terminology here. DocProperty fields
don't store anything: they display the contents of a custom or built-in
document property (which you get to through File > Properties). It's the
property that stores the value, not the field.

So what you need your form to do is read, display, and set the document
property.

If it's a built-in document property use

txtBox = activedocument.BuiltinDocumentProperties("Name")

activedocument.BuiltinDocumentProperties("Name") = txtbox

if it's a custom property, use .CustomDocumentProperties("Name") ..

After changing the property, you need to update fields in the document to
display the new value.

> Hello,
>
[quoted text clipped - 10 lines]
> Thanks in advance,
> MarkN
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.