Can anyone please help me to understand why my combobox is not being populated?
Public Sub ComboBox1_Change()
ComboBox1.Items.Add ("")
ComboBox1.Items.Add ("Stevel")
ComboBox1.Items.Add ("Janet")
ComboBox1.Items.Add ("Debbie")
ComboBox1.Items.Add ("Roger")
ComboBox1.Items.Add ("Gurpreet")
ComboBox1.Items.Add ("David")
ComboBox1.Items.Add ("Shamas")
ComboBox1.Items.Add ("Diane")
ComboBox1.Items.Add ("Paul")
End Sub
Hi Mark,
Thank you for sharing Macro and images.
I have looked into your code and found that "ComboBox1_Change()" was not call anywhere.
Because of this, you did not see any list in the combo box.
Another thing is that items are not adding into Combox Box with existing code.
I have updated your code which is shown below:
Call "ComboBox1_Change()" function on "UserForm_Initialize()" as shown below
Also, I have updated how to add items in Combo Box as shown below:
When I run the Macro, I get the result as shown in below image
Since these are small changes in Macro, I did not add the updated macro here.
I hope this will work for you.
Thanks
Prashant Baher