Replace DTPicker in 64-Bit Excel 2013 VBA
Question details
Find a compatible replacement for the Microsoft Date and Time Picker control in 64-bit Excel 2013 VBA.

- Product
- Microsoft Excel 2013 VBA
- Device & OS
- not provided
- Scenario
- A VBA project needs a date and time selector that works in 64-bit Office.
- Observed behavior
- The Microsoft Date and Time Picker control is unavailable or incompatible in 64-bit Office, and registering its OCX files may not resolve the issue.
In Excel, select File > Account > About Excel to confirm that the Office installation is 64-bit. Identify the forms and VBA code that currently refer to DTPicker so you can update those references.
Replace DTPicker with a VBA UserForm
Use a built-in VBA form to accept and validate a typed date or time without the unsupported picker control.
This example writes the entered value to the active worksheet cell. It provides a text-entry form rather than a graphical calendar.
Press Alt+F11 to open the VBA editor, then select Insert > UserForm. In the Properties window, set the form's Name to UserForm1 if it is not already named.
From the Toolbox, add a TextBox and a CommandButton to the form. Set their Name properties to txtDate and cmdOK, and set the button's Caption to OK.
Double-click the OK button and place this code in its Click procedure: If Not IsDate(Me.txtDate.Value) Then MsgBox "Enter a valid date or time." Exit Sub End If ActiveCell.Value = CDate(Me.txtDate.Value) Unload Me
Select a worksheet cell, return to the VBA editor, and run UserForm1.Show from a standard-module macro or the Immediate window. Enter a date or time and click OK; update existing DTPicker references to use the new form and its result.

Evaluate a 64-bit-compatible third-party picker
Use a replacement control when the project needs a graphical date or time picker.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar spreadsheet interface and support for Microsoft Office formats, making it easy to move everyday spreadsheet work. It does not fix Excel's unsupported DTPicker control.

Frequently Asked Questions
Can I make the old DTPicker work by registering its OCX file?
Registration does not overcome a control's 64-bit incompatibility or make an unavailable control compatible. Use a compatible replacement or a VBA UserForm instead.
Does the VBA UserForm example provide a calendar?
No. The example uses a TextBox for date or time entry and validates it with IsDate. For a graphical calendar, evaluate a compatible third-party control or build a more detailed UserForm.
How do I check whether Excel 2013 is 64-bit?
In Excel, select File > Account > About Excel. The dialog identifies whether the Office installation is 32-bit or 64-bit.
Will a third-party picker work on every user's computer?
Not necessarily. Check the vendor's 64-bit Office support and deployment requirements, then test installation and workbook behavior on the computers where the file will be used.




