VBA & Macro Problems

Fix a Missing Date and Time Picker in an Excel VBA UserForm

Anum MushtaqAnum Mushtaq Dec 2, 2026 869 views

Question details

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

Fix a Missing Date and Time Picker in 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.
Before you start

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.

Solution 1Recommended

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.

1
Add the UserForm controls

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.

2
Add the validation code

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.

3
Open and test the form

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.

Use a Validated Date Field in the Excel VBA UserForm
Date interpretation: IsDate uses the system's regional date settings and can also accept time-only values. Add stricter validation if you need to enforce a particular date format or exclude times.
Free Microsoft Office alternative

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.

Enter and format dates in spreadsheets using familiar toolsOpen and edit Microsoft Excel formats such as XLSX and XLSUse a familiar interface for everyday spreadsheet tasksWork with a free, lightweight office suite
microsoft office alternative - wps office

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.