Private Sub UserForm_Initialize()
'Modified 10/1/2018 5:03:46 AM EDT
Dim i As Long
For i = -1 To 10
ListBox1.AddItem DateAdd("d", i + 1, Date)
Next
End Sub
Yes thanks. I know DatePicker can be added but I have not done so.
I'm not sure what your asking for.
Sounds to me like you want to add items to a ListBox and then in column 2 of the listbox you want some date entered.
What items are being added to the listbox column(1)?
What is your ultimate goal here?
After adding all theses value to column (1) of the listbox and then adding dates to column(2) of the listbox
What do you plan to do with this?
Tha is actually a good idea. So my listbox will have two columns; column one is filled out with my data, column two is initilly empty. Uppon dobble-clicking on a specfic row a small user form pops-up in which I can place my famous datepicker. I think I will persue this path and see how far I can get.You can't add a DatePicker to a listbox in VBA.
Why not use the listbox DblClick event to pop a datepicker and then add the selected date to the row that was double clicked.