Hi All,
As per the title, I would like to do a quick check to see if the variable 'Society' is already within my cbSociety (ComboBox) if not, then add.
Cheers
Chris
As per the title, I would like to do a quick check to see if the variable 'Society' is already within my cbSociety (ComboBox) if not, then add.
Code:
Private Sub UserForm_Initialize()Dim ws As Worksheet
Set ws = Worksheets("Trials")
cRow = 2
While ws.Cells(cRow, 2) <> ""
Society = ws.Cells(cRow, 2)
Me.cbSociety.AddItem Society
cRow = cRow + 1
Wend
End Sub
Cheers
Chris