How to make the Combobox item list dynamic?
问题 I am using a 'Generate' button on my worksheet. When I click on the button, a popup (form) come, which contains two comboboxes. Basis the selection in the first combobox, the second combobox option list is populated. For the first combobox, when I hardcode the item values it works fine. The form code is as follows: Private Sub UserForm_Initialize() With ComboBox_DL .AddItem "DL1" .AddItem "DL2" End With End Sub I tried to make this item list dynamic by fetching the combobox item values from a