combobox values

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

Hi,
I have a userform with 10 comboboxes on it how do I use excel to check the
value of the other boxes on the form. so I do have not any duplicates of
items.

Thanks

Greg
 
Greg, Here is some pseudo code that should get your started..

enjoy, Rick

Dim x as Integer, y as Integer

for x = 1 to 9
for y = x+1 to 10
if Me.CompoBox & x = Me.CompoBox & y then
MsgBox("Duplicate Found")
Exit For
endif
next y
next x
 
Thank you Rick

Greg
Rick Hansen said:
Greg, Here is some pseudo code that should get your started..

enjoy, Rick

Dim x as Integer, y as Integer

for x = 1 to 9
for y = x+1 to 10
if Me.CompoBox & x = Me.CompoBox & y then
MsgBox("Duplicate Found")
Exit For
endif
next y
next x
 

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