ComboBox,Array and Index numbers

  • Thread starter Thread starter Dennis Hightowe
  • Start date Start date
D

Dennis Hightowe

I have devloped a small array of names and numbers. I have filled a
combo box with the information from one column of the array. I have set
the control source to put the index number in a specific cell on a
specific worksheet. When I run the user form I do not get the index
number I get the text instead. I changed the bound column to 0 but I
still do not get the index number in the cell. When I exit I see the
index number appear in my combobox drop down . I am new to VBA for
Excel programming so any help is certainly appreciated
 
Dennis

When you say index number do you mean the actual index number of the
item in the combobox or the number associated with the name on the
worksheet?

If it's the first I think you would need code to get the number into a
cell.

If it's the second you should make the combobox have 2 columns, one for
the name and one for the number.

The make the bound column the one with the number and hide it.
 
Thank you for the information. The number that I am trying to get is th
actual index number of the selected item in the comboBo
 
If it is the first one, and we are talking a control toolbox combo, then
just set the BoundColumn to 0.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
See my response

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dennis Hightowe"
 

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

Back
Top