using more than one combo box in the same document

C

Cornbean

Someone at this wonderful community pointed me to an area so I could create a
combo box containing more than 25 work locations in my document. I
sucessfully did that. Now I want to use another combo box that holds more
than 25 job titles in the same document but my coding just keeps getting the
new combo box mixed with the first combo box. I tried searching the databases
but once again, I am not good with keyword searching. Please help. Thank you.
 
K

Kevin B

Depending on which combo box you are using, you can assign the combobox a name.

If you inserted the combobox via the FORMS toolbar, display the forms
toolbar, click the PROTECT FORM button to unprotect the form document and
double click on the first combo box. In the FIELD SETTING panel name the
bookmark something relevant ,like cboLocations, then repeat the process for
the other combobox.

If you inserted the combo box via the CONTROLS TOOLBOX, open the CONTROLS
TOOLBOX toolbar, click on the DESIGN button to go to design mode, right click
on combo box and select PROPERTIES. The first property field is NAME, and
enter in a relevant name for the combo box. Repeat for the second combo box.


You can now refer to the combo boxes by unique name, either as an object or
as a bookmark.
 
C

Cornbean

I am using the controls toolbox. I knew the error had something to do with
how I named everything in the code. When I went to the properties box to
check the names, I did have a different name for the user form than the other
combo box but I realized that I didn't change the names for the command
button and Combo box itself. That's why everything kept reverting to the
first box. Ha, silly me to think the software would just know what I meant.
Thanks a bunch.
 
D

Doug Robbins - Word MVP

I would suggest that you consider using a userform instead of a protected
document with formfields.

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