Hi guys,
As previously mentioned, I'm a complete beginner with VB.
I have a form that pop's up when you click a button, please see the form below;
I can't get my info to populate the combobox's, please see my code below;
The bits in bold are things I've added in to try to get them to work.
Can anyone help me?
Thanks,
Luke
As previously mentioned, I'm a complete beginner with VB.
I have a form that pop's up when you click a button, please see the form below;
I can't get my info to populate the combobox's, please see my code below;
Private Sub UserForm1_Initialize()
UserForm1.Activate
comboday.Enabled
combomonth.Enabled
comboyear.Enabled
With comboday.Text
.AddItem "01"
.AddItem "02"
.AddItem "03"
.AddItem "04"
.AddItem "05"
.AddItem "06"
.AddItem "07"
.AddItem "08"
.AddItem "09"
.AddItem "10"
.AddItem "11"
.AddItem "12"
.AddItem "13"
.AddItem "14"
.AddItem "15"
.AddItem "16"
.AddItem "17"
.AddItem "18"
.AddItem "19"
.AddItem "20"
.AddItem "21"
.AddItem "22"
.AddItem "23"
.AddItem "24"
.AddItem "25"
.AddItem "26"
.AddItem "27"
.AddItem "28"
.AddItem "29"
.AddItem "30"
.AddItem "31"
End With
With combomonth
.AddItem "01"
.AddItem "02"
.AddItem "03"
.AddItem "04"
.AddItem "05"
.AddItem "06"
.AddItem "07"
.AddItem "08"
.AddItem "09"
.AddItem "10"
.AddItem "11"
.AddItem "12"
End With
With comboyear
.AddItem "2011"
.AddItem "2012"
.AddItem "2013"
.AddItem "2014"
End With
End Sub
The bits in bold are things I've added in to try to get them to work.
Can anyone help me?
Thanks,
Luke