Bookmark Help Needed

T

tonytmba

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, (e-mail address removed)
 
D

Doug Robbins - Word MVP

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

--
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
 
T

tonytmba

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
 
M

macropod

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

--
macropod
[MVP - Microsoft Word]


message | 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
|
|
|
|
| "(e-mail address removed)" wrote:
|
| > 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, (e-mail address removed)
 
D

Doug Robbins - Word MVP

I did not misunderstand what you said you want to do.

Insert Text FormFields in each of the table cells and instead of using your
UpdateBookmark function, set the text to display in each of the Text
FormFields by using its .Result property.

--
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top