Patriot2879
Well-known Member
- Joined
- Feb 1, 2018
- Messages
- 1,259
- Office Version
- 2010
- Platform
- Windows
Hi please can you help me,
I have the code below where combobox2 is working fine, butwith combobox1 I want the range to be B1, C1, D1, E1, F1, G1, H1, J1, K1, L1,M1, N1, O1, P1, Q1, R1, please can you help?
I have the code below where combobox2 is working fine, butwith combobox1 I want the range to be B1, C1, D1, E1, F1, G1, H1, J1, K1, L1,M1, N1, O1, P1, Q1, R1, please can you help?
Code:
With ThisWorkbook.Sheets("Data")
ComboBox1.RowSource = ""
ComboBox1.List = .Range("B1:R" & .Range("B" & Rows.Count).End(xlUp).Row).Value
ComboBox2.RowSource = ""
ComboBox2.List = .Range("A2:R" & .Range("A" & Rows.Count).End(xlUp).Row).Value
End With