Fix a Missing Date and Time Picker in an Excel VBA UserForm
Question details
Find a way to enter dates when the Microsoft Date and Time Picker control is missing from an Excel VBA UserForm.

- Product
- Microsoft Excel in Office Professional Plus 2019
- Device & OS
- not provided
- Scenario
- A user wants to add a date picker to a VBA UserForm, but it is not listed under Additional Controls.
- Observed behavior
- The control remains unavailable after MSCOMCT2 is registered; 64-bit Office compatibility may be a factor.
In Excel, open File > Account > About Excel to check whether Office is 32-bit or 64-bit. The legacy control is commonly unavailable in 64-bit Office, so registering MSCOMCT2 may not make it usable.
Use a Validated Date Field in the Excel VBA UserForm
Replace the unavailable picker with a text box that checks the entered value before writing it to a worksheet.
This approach does not provide a pop-up calendar, but it avoids depending on the legacy Date and Time Picker control.
Press Alt+F11, choose Insert > UserForm, and add a TextBox and a CommandButton from the Toolbox. In the Properties window, name them txtDate and cmdOK, and name the form UserForm1.
Double-click cmdOK and add this code to its click event: Private Sub cmdOK_Click() If Not IsDate(Me.txtDate.Value) Then MsgBox "Enter a valid date." Exit Sub End If With ThisWorkbook.Worksheets("Sheet1").Range("A1") .Value = CDate(Me.txtDate.Value) .NumberFormat = "mm/dd/yyyy" End With Unload Me End Sub Replace Sheet1 and A1 with the destination worksheet and cell.
In the VBA editor, choose Insert > Module and add a macro containing UserForm1.Show. Run the macro, enter a date in the text box, and click the command button to check the result in the target cell.

Restrict Worksheet Entries with Excel Date Validation
Use this option when users can enter dates directly in worksheet cells instead of through a UserForm.
Manage Spreadsheet Dates with WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easy to move everyday spreadsheet work. It does not fix the missing Microsoft Excel VBA control.

Frequently Asked Questions
Why is the Date and Time Picker missing from Additional Controls?
The legacy Microsoft Date and Time Picker is commonly unavailable in 64-bit Office and is not reliably supported in modern Excel installations. Registering MSCOMCT2 does not guarantee that it will appear or work.
How can I check whether my Office installation is 64-bit?
In Excel, choose File > Account > About Excel. The About window identifies the Office version as 32-bit or 64-bit.
Can I still give users a pop-up calendar in a VBA UserForm?
Yes. You can use a VBA calendar UserForm or a compatible third-party calendar control instead of the legacy Microsoft control. Check that any third-party control supports your Office architecture before deploying it.
Does Excel Data Validation add a calendar to a UserForm?
No. Data > Data Validation restricts entries in worksheet cells; it does not add a calendar control to a VBA UserForm.




