View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dan Perkins Dan Perkins is offline
external usenet poster
 
Posts: 6
Default Using RemoveItem with a combobox

I have two lists of names. One is several hundred names long. The other is <
20. They are stored in separate worksheets.

I have a combo box that is populated with the large list of names. Then what
I want to do is remove any names from the combo box list if they are in the
second list.

It appears that while I can do
cmbobox1.AddItem Name
I cannot do
cmbobox1.RemoveItem Name

If I understand correctly, RemoveItem requires the row number to remove.

So, what is the best way to find the row number for the item that I want to
delete?


Thanks,

Dan Perkins