How do create a drop down list and then make multiple selections?

B

brebner2

I am trying to make a letter that has sections where the user can select
multiple selections from a drop down list of recommendation codes. I only
want these selections to show when I print the letter.
 
J

Jay Freedman

I am trying to make a letter that has sections where the user can select
multiple selections from a drop down list of recommendation codes. I only
want these selections to show when I print the letter.

The dropdown form fields that you can insert in the body of the document cannot
do multiple selection, only single selection. The same is true of the combo box
and list controls from the Control Toolbox, and (in Word 2007) the combo box and
list content controls.

The one tool offered by Word that does allow multiple selection is the list box
control that you can put on a userform (a custom dialog programmed in VBA). See
http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm for an introduction.

In that list control, you can set the MultiSelect property to either
fmMultiSelectMulti or fmMultiSelectExtended (the difference is that
fmMultiSelectMulti lets the user simply click an item in the list to select or
deselect it, while fmMultiSelectExtended allows the use of the Shift key to
select a range of items or extend the selection, and Ctrl to select or deselect
individual items).

When the user clicks the OK button to close the userform, code (that you write)
can transfer the text of the selected items to the document body.
 

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