that's how the control is written, US date format.
So you need to format the date how you want.
Also pull the selected date from the userform rather than push, that way you can use the calendar form from other controls and userforms.
userform frmInput code
Private Sub Calendar1_Click()
frmInput.Hide
With frmCalendar
.Show
With .Calendar1
Me.TextBox1.Text = VBA.Format(DateSerial(.Year, .Month, .Day), "dd/mm/yyyy")
End With
End With
frmInput.Show
End Sub
userform frmCalendar code
Private Sub Calendar1_Click()
frmCalendar.Hide
End Sub
Bookmarks