Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I'm wondering how I can Check for duplicates in a listbox. The listbo is filled with values from a combobox and has numbers 1000 -8000. need to say ok, You've already entered a value for 1000 please chec the posting code and try again. I was trying something like Code ------------------- if userform2.listbox1.value = userform2.combobox1.value then msgbox "im sorry you've entered duplicate charges" else with userform2.listbox1 .additem userform2.combobox1.value end wit ------------------- Its a little more complicated then that but this is just a relativ idea of what im trying to do. Thanks in advance... Chris :cool -- justchri ----------------------------------------------------------------------- justchris's Profile: http://www.excelforum.com/member.php...nfo&userid=889 View this thread: http://www.excelforum.com/showthread.php?threadid=40139 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA: Creating listbox similar to the one in Pivot table (Listbox+Checkbox) | Excel Programming | |||
Modification of listbox to listbox code | Excel Programming | |||
Modification of listbox to listbox code | Excel Programming | |||
listbox.value not equal to listbox.list(listbox.listindex,0) | Excel Programming | |||
Is refreshing listbox rowsource in listbox click event possible? | Excel Programming |