A came across this very useful custom made calendar. One of the comments was : "Great! Useful Tool!!!"
I modified to save the picked date in a date variable, so I wouldn't have to reinterpret the date from text when I used it. In module, added: Private dPickedDate as Date
. In each day command button changed to:
dPickedDate = DateSerial(
Val(Format(CommandButton45.Caption, "YYYY")), _
Val(Format(CommandButton45.Caption, "MM")), _
CommandButton1.Caption)
TextBox1.Text = Format(dPickedDate, "DD-MMM-YYYY")
My Question:
I'm not sure where/how to include the "Private dPickedDate as Date" Despite various attempts I can't get it to work...