Mel Smith
Well-known Member
- Joined
- Dec 13, 2005
- Messages
- 1,023
- Office Version
- 365
- Platform
- Windows
I have the following code in my UserForm but when I click on the DropDown from within the UserForm on my worksheet, all Comboboxes are blank. What have I done wrong or am I missing some lines of code?
Private Sub UserForm1_Initialize()
With ComboBox1
.AddItem "County Championship"
.AddItem "Royal London One Day Cup"
.AddItem "Vitality T20 Blast"
.AddItem "Second XI Championship"
.AddItem "Second XI 50 Over Friendly"
.AddItem "Second XI T20 (SET20)"
.AddItem "Second XI Friendlies"
With ComboBox2.List = Sheets(1).Range("A4,A6, A8, A10, A12, A14, A16, A18, A20, A22, A24, A26, A28, A30").Value
With ComboBox3.List = Sheets(9).Range("B5:B64").Value
With ComboBox4
.AddItem "First"
.AddItem "Second"
End Sub
mamy thanks,
Mel
Private Sub UserForm1_Initialize()
With ComboBox1
.AddItem "County Championship"
.AddItem "Royal London One Day Cup"
.AddItem "Vitality T20 Blast"
.AddItem "Second XI Championship"
.AddItem "Second XI 50 Over Friendly"
.AddItem "Second XI T20 (SET20)"
.AddItem "Second XI Friendlies"
With ComboBox2.List = Sheets(1).Range("A4,A6, A8, A10, A12, A14, A16, A18, A20, A22, A24, A26, A28, A30").Value
With ComboBox3.List = Sheets(9).Range("B5:B64").Value
With ComboBox4
.AddItem "First"
.AddItem "Second"
End Sub
mamy thanks,
Mel