Hello timarcraze,
The textBox on a Userform has no Click event. To get around the problem of the calendar showing up inappropriately, I added the following code to the USserForm_Activate event procedure. This sets the focus to another text box when the UserForm is displayed. Since the txtDate control is the first one in the tab order, VBA will force the cursor back to this text box despite the code action. This will trigger the date to update with today's date. Once a date is in pace, the calendar will not show when the UserForm is closed.
Bookmarks