michaelhayes
08-24-2007, 01:21 AM
hey all,
first let me say its great to have vba help online. im doing an online course on this so its really hard. i am using microsoft word and wanted to make a listbox of the days of the week. so far i have come up with this but it isnt working. can anybody here help me out or refer to somewhere that helps beginners with vba stuff?
btw i called my listbox lbxDay
thanks in advance
Private Sub lbxDay_Initialize()
listlbxDay.AddItem "Monday"
listlbxDay.AddItem "Tuesday"
listlbxDay.AddItem "Wednesday"
listlbxDay.AddItem "Thursday"
listlbxDay.AddItem "Friday"
listlbxDay.AddItem "Saturday"
listlbxDay.AddItem "Sunday"
End Sub
first let me say its great to have vba help online. im doing an online course on this so its really hard. i am using microsoft word and wanted to make a listbox of the days of the week. so far i have come up with this but it isnt working. can anybody here help me out or refer to somewhere that helps beginners with vba stuff?
btw i called my listbox lbxDay
thanks in advance
Private Sub lbxDay_Initialize()
listlbxDay.AddItem "Monday"
listlbxDay.AddItem "Tuesday"
listlbxDay.AddItem "Wednesday"
listlbxDay.AddItem "Thursday"
listlbxDay.AddItem "Friday"
listlbxDay.AddItem "Saturday"
listlbxDay.AddItem "Sunday"
End Sub