Hi all,
I have userform with date pickers and have text boxes overlaid on these, when I select todays date from the date picker it does not display the current date in the text box (I have 8 date pickers on the userform). If I select another date then reselect the current date it works. It has occasionally worked but trying to figure out why.
Below is the code for populating the text box from the Date Picker.
The initialize userform code uses the following to format and set the textbox
Cheers, Dave
Windows 7 with Excel 2010
I have userform with date pickers and have text boxes overlaid on these, when I select todays date from the date picker it does not display the current date in the text box (I have 8 date pickers on the userform). If I select another date then reselect the current date it works. It has occasionally worked but trying to figure out why.
Below is the code for populating the text box from the Date Picker.
Code:
Private Sub DTPicker1_Change()
TextBox1.Value = DTPicker1.Value
End Sub
Code:
TextBox1.Value = Format(Date, "dd-mmm-yy")
TextBox1.Value = ""
Cheers, Dave
Windows 7 with Excel 2010