VBA & Macro Problems

Replace DTPicker in 64-Bit Excel 2013 VBA

Chanuka GeekiyanageChanuka Geekiyanage Nov 27, 2026 869 views

Question details

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

Replace DTPicker 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.
Before you start

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.

Solution 1Recommended

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.

1
Create the form

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.

2
Add entry controls

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.

3
Validate and write the value

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

4
Open and test the form

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.

Replace DTPicker with a VBA UserForm
Date formats depend on regional settings: IsDate and CDate interpret text using the computer's regional settings. Test the date and time formats your users will enter, and format the destination cell as needed.
Free Microsoft Office alternative

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.

Open and edit Microsoft Excel XLS and XLSX filesEnter and format dates and times in spreadsheetsUse a familiar, easy-to-navigate spreadsheet interfaceMove everyday spreadsheet work to a lightweight Office suite
microsoft office alternative - wps office

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.