Using a list box in a word document

M

Mady

I am creating a dictation form for a surgeons office and I used drop down
boxes for the user to add in information. However, the Doc would like the
user to be able to select more than one item in a drop down box. I do see,
from the controls, that a list box or a drop down box can be placed into the
document so the user can select more than one item. My problem is getting
the list box or combo box to function. I am not familiar with the VBA
language. I have been searching MSDN but the information I do find seems to
be for VB and has not been helpful. How do I get this to function so the user
can select more than one item only showing those items that were selected?

Madalyn
 
D

Doug Robbins - Word MVP

While you can put formfields in a document that is protect and amongst those
fields there is a DropDown formfield, there is no ListBox formfield. While
you can put a ListBox directly in a document, I would never do it. Rather,
I would put the listbox in a UserForm and I would put a macro on a toolbar
to call the userform that contains the listbox. What you do from there will
depend on how you intend the multiple select capability to be used. - In
what configuration do you want the selected items to appear in the document?

You will have to work that one out for yourself, but to get you started see
the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

and

"How to find out which Items are selected in a Multi-Select ListBox" at:

http://www.word.mvps.org/FAQs/Userforms/GetMultiSelectValues.htm


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