Patriot2879
Well-known Member
- Joined
- Feb 1, 2018
- Messages
- 1,259
- Office Version
- 2010
- Platform
- Windows
Hi, I have the code below but I am getting an error, the situation is I have two combo boxes in a userform and the boxes are filled in with data from my 'IN DAY LISTS' sheet, but it doesn't work when I added ComboBox1 coding below, please can you help me? I appreciate all your help with this
Code:
Private Sub UserForm_Initialize()
ComboBox2.RowSource = ""
ComboBox2.List = Sheets("IN DAY LISTS").Range("D2", Sheets("IN DAY LISTS").Range("D" & Rows.Count).End(xlUp)).Value
ComboBox1.RowSource = ""
ComboBox1.List = Sheets("IN DAY LISTS").Range("C2", Sheets("IN DAY LISTS").Range("C" & Rows.Count).End(xlUp)).Value
End With
End Sub