I have the code below in a userform, with 5 combo boxes. I need Combo Box 2 to display a time, but I can't get it to work. I've had a look around and tried a few suggestions, but can't seem to get it. Any suggestions would be hugely appreciated.
Code:
' Open UserForm1 when the workbook is opened
Private Sub UserForm_Initialize()
ComboBox1.RowSource = ""
ComboBox1.List = Worksheets("Drop Down List Source").Range("A2", Worksheets("Drop Down List Source").Range("A" & Rows.Count).End(xlUp)).Value
ComboBox2.RowSource = ""
ComboBox2.List = Worksheets("Drop Down List Source").Range("B2", Worksheets("Drop Down List Source").Range("B" & Rows.Count).End(xlUp)).Value
ComboBox3.RowSource = ""
ComboBox3.List = Worksheets("Drop Down List Source").Range("C2", Worksheets("Drop Down List Source").Range("C" & Rows.Count).End(xlUp)).Value
ComboBox4.RowSource = ""
ComboBox4.List = Worksheets("Drop Down List Source").Range("D2", Worksheets("Drop Down List Source").Range("D" & Rows.Count).End(xlUp)).Value
ComboBox5.RowSource = ""
ComboBox5.List = Worksheets("Drop Down List Source").Range("E2", Worksheets("Drop Down List Source").Range("E" & Rows.Count).End(xlUp)).Value
End Sub