Date Time Picker Tool on User Form

Watch the training video to learn how to insert a date time picker tool on an Excel User Form to transfer dates quickly and easily on to an Excel worksheet:


I have discussed date and time picker and calendar controls in this training video earlier. But quite a few of my YouTube subscribers couldn’t locate the data and time picker tool in Excel and recently I got this message:

Thanks for your tutorials, they are very well done – and nice and quick. I have a request that I have been having an extremely difficult time trying to accomplish or find any info about. I want my employees to be able to just click and choose the date like a date picker in many programs. I use this in Quickbooks to enter dates quickly. I think it is something that should be so simple and literally just part of excel – but apparently its not!! LOL….Please let me know if you can help – Thank You Again!!!

First we create a macro in our Visual Basic Editor called ShowUserForm and code it like this:

Sub showUserForm()
End Sub

Next we create a user-form with the following controls and code them accordingly as shown in the training video also:

Date Time Picker Tool on User Form
Date Time Picker Tool on User Form

Private Sub CommandButton1_Click()

ActiveCell = DTPicker1.Value
ActiveCell = ActiveCell.Offset(1, 0).Activate
If ActiveCell = True Then ActiveCell = “”
End Sub

Private Sub CommandButton2_Click()
Unload Me
End Sub

Private Sub DTPicker1_CallbackKeyDown(ByVal KeyCode As Integer, ByVal Shift As Integer, ByVal CallbackField As String, CallbackDate As Date)

End Sub

Private Sub UserForm_Initialize()
DTPicker1.Value = Date
End Sub

Published by

Dinesh Kumar Takyar

Welcome to! My aim is to help you learn MS Excel including VBA. I always felt that a good way to learn something was to find solutions to problems in that domain. That is why I share these Excel videos with you. Mostly these are questions asked during my corporate training sessions. I've been training individuals and companies in computers since 1991. I did my B. Sc. (Vordiplom), M. Sc. (Diplom) and Ph.D. (Dr. rer. nat.) from Hamburg, Germany. The best thing about solving some of my visitor's questions is that I also gain new insights. For more Excel VBA solutions you may like to visit my YouTube channel: For a structured Excel VBA training course online you can visit:

2 thoughts on “Date Time Picker Tool on User Form”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.