A
ayan
I have tried lots of options to populate a combobox from a range but
it just wont happen I dont know why . Am at my wits end. This is one
of the options I tried
Private Sub UserForm_Initialize()
Dim emp As Range
emp =
Workbooks("test.xls").Worksheets("Sheet2").Range("A2").End(xlDown)
For Each Cell In emp
If Cell.Value <> "" Then
ComboBox1.AddItem Cell.Value
End If
Next
ComboBox1.Value = "Please Select"
End Sub
Can someone please please help me out. I dont know what to do.
Tried rowsource, list everything. Nothing works.
it just wont happen I dont know why . Am at my wits end. This is one
of the options I tried
Private Sub UserForm_Initialize()
Dim emp As Range
emp =
Workbooks("test.xls").Worksheets("Sheet2").Range("A2").End(xlDown)
For Each Cell In emp
If Cell.Value <> "" Then
ComboBox1.AddItem Cell.Value
End If
Next
ComboBox1.Value = "Please Select"
End Sub
Can someone please please help me out. I dont know what to do.
Tried rowsource, list everything. Nothing works.