View Single Post
  #3   Report Post  
Posted to microsoft.public.word.newusers
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default How do create a drop down list and then make multiple selections?

On Sat, 21 Mar 2009 07:16:01 -0700, brebner2
wrote:

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/Userfo...eAUserForm.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.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.