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 / January 2007

Tip: Looking for answers? Try searching our database.

Bookmark Help Needed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tonytmba@hotmail.com - 05 Jan 2007 07:02 GMT
I have bookmarks in a form table where I assign text values based on a user's
selection from a drop-down box.

However, the user is wanting a new option created in the drop-down box that
will change the bookmarks from having the static text assigned to being input
fields for the user to enter data.

I am confused how I can make this happen . . .

Any help is greatly appreciated.  --> Thanks, tonytmba@hotmail.com
Doug Robbins - Word MVP - 05 Jan 2007 09:03 GMT
Use a Text FormField in place of the Bookmarks and use the .Result property
of  that FormField to get it to display the entry from the DropDown

Signature

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

>I have bookmarks in a form table where I assign text values based on a
>user's
[quoted text clipped - 9 lines]
>
> Any help is greatly appreciated.  --> Thanks, tonytmba@hotmail.com
tonytmba@hotmail.com - 05 Jan 2007 09:15 GMT
I am not trying to display the result from the drop down, but I am trying to
change the eleven fields to be input fields for the user to type text into,
rather than read static text that I have placed programmatically with each
Case on the drop-down.  Here is a sample of my code, where I pass string data
to the bookmarks, then on my new drop-down area, the table will be editable
by the end user:

   Select Case ActiveDocument.FormFields("PositionType").DropDown.Value

   Case 1
       pToggleProtectDoc
       UpdateBookmark "bkPRType", "Please Select a Position Type"
       UpdateBookmark "bkPR1", ""
       UpdateBookmark "bkPR2", ""
       UpdateBookmark "bkPR3", ""
       UpdateBookmark "bkPR4", ""
       UpdateBookmark "bkPR5", ""
       UpdateBookmark "bkPR6", ""
       UpdateBookmark "bkPR7", ""
       UpdateBookmark "bkPR8", ""
       UpdateBookmark "bkPR9", ""
       UpdateBookmark "bkPR10", ""
       UpdateBookmark "bkPR11", ""
       pToggleProtectDoc

> I have bookmarks in a form table where I assign text values based on a user's
> selection from a drop-down box.
[quoted text clipped - 6 lines]
>
> Any help is greatly appreciated.  --> Thanks, tonytmba@hotmail.com
macropod - 05 Jan 2007 10:01 GMT
Hi Tony,

By design, you can't enter free-form text into a drop-down formfield. If you
need that functionality, you could set the drop-down formfield to run a macro
on exit. That macro could test the dropdown value and, if it's a certain
value, display an input box through which you could insert the bookmark's
text. Alternatively, you could use either a vba userform or a supplementary
text formfield on your form.

Cheers

Signature

macropod
[MVP - Microsoft Word]

| I am not trying to display the result from the drop down, but I am trying to
| change the eleven fields to be input fields for the user to type text into,
[quoted text clipped - 31 lines]
| >
| > Any help is greatly appreciated.  --> Thanks, tonytmba@hotmail.com
 
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.