Hello all.
I have a userform with a three comboboxes. The first two define the criteria for what's to be displayed in the third. The code that evaluates the states of the first two comboboxes resides in the Dropbuttonclick() event of the third.
My problem is that in order to allow the user to drop down the third combobox without duplicate entries appearing, i've placed...
in the Dropbuttonclick() event. This works, but prevents me from selecting from that list, because selecting calls the Dropbuttonclick() event which clears the list.
Does anyone know where I could place the Combobox.clear command so that it would clear the list before repopulating it, but not before selecting?
Thanks in advance for any help.
I have a userform with a three comboboxes. The first two define the criteria for what's to be displayed in the third. The code that evaluates the states of the first two comboboxes resides in the Dropbuttonclick() event of the third.
Code:
'Below code is in a Do loop that loops through all possible entries:
if region = Regioncombobox.value and Prioritycombobox.value = "High" then
projectcombobox.additem region
end if
My problem is that in order to allow the user to drop down the third combobox without duplicate entries appearing, i've placed...
Code:
Projectcombox.clear
in the Dropbuttonclick() event. This works, but prevents me from selecting from that list, because selecting calls the Dropbuttonclick() event which clears the list.
Does anyone know where I could place the Combobox.clear command so that it would clear the list before repopulating it, but not before selecting?
Thanks in advance for any help.