C
Corey
The below code posted by a fellow user to assist me is suppose to populate a
combobox with ONLY values in Column A in sheet named(InspectionData).
However i do NOT get any values in the combobox dropdownlist.
Do i need to add something to the RowSource ??
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Private Sub UserForm_Initialize()
Dim lastcell As Long
Dim myRow As Long
lastcell = Cells(Rows.Count, "A").End(xlUp).Row
With ActiveWorkbook.workSheets("InspectionData")
For myRow = 2 To lastcell
If .Cells(myRow, 1) <> "" Then
If IsNumeric(.Cells(myRow, 1)) = True Then
Me.ComboBox1.AddItem .Cells(myRow, 1)
End If
End If
Next myRow
End With
End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Corey....
combobox with ONLY values in Column A in sheet named(InspectionData).
However i do NOT get any values in the combobox dropdownlist.
Do i need to add something to the RowSource ??
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Private Sub UserForm_Initialize()
Dim lastcell As Long
Dim myRow As Long
lastcell = Cells(Rows.Count, "A").End(xlUp).Row
With ActiveWorkbook.workSheets("InspectionData")
For myRow = 2 To lastcell
If .Cells(myRow, 1) <> "" Then
If IsNumeric(.Cells(myRow, 1)) = True Then
Me.ComboBox1.AddItem .Cells(myRow, 1)
End If
End If
Next myRow
End With
End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Corey....