VBA & Macro Problems

How to Fix Missing DTPicker Calendar Control in Excel VBA

Chanuka GeekiyanageChanuka Geekiyanage Nov 10, 2026 868 views

Question details

The user is unable to find or enable the Microsoft Date and Time Picker control in Excel VBA, even after downloading the MSCOMCT2.OCX file.

How to Fix Missing DTPicker Calendar Control in Excel VBA
Product
Microsoft Excel
Device & OS
not provided
Scenario
Attempting to insert a date picker calendar control into an Excel VBA UserForm.
Observed behavior
The DTPicker control is missing from the VBA toolbox due to compatibility limitations with modern Office architecture (such as 64-bit environments) or the operating system.
Before you start

Verify whether you are using a 32-bit or 64-bit version of Microsoft Office via File > Account > About Excel, as the legacy DTPicker control is strictly limited to 32-bit Office environments.

Solution 1Recommended

Register MSCOMCT2.OCX for 32-bit Office

If you are running 32-bit Excel, manually register the downloaded OCX file using the Command Prompt to make the control available.

The DTPicker control relies on the MSCOMCT2.OCX library. Even if downloaded, Windows does not automatically recognize it until it is registered via the system command line.

1
Place the OCX file in the correct directory

Move the downloaded MSCOMCT2.OCX file to C:\Windows\System32. If you are using a 64-bit version of Windows but 32-bit Office, place it in C:\Windows\SysWOW64 instead.

2
Open Command Prompt as Administrator

Click the Windows Start menu, type 'cmd', right-click on 'Command Prompt', and select 'Run as administrator'.

3
Execute the registration command

Type 'regsvr32 C:\Windows\System32\mscomct2.ocx' (or use the SysWOW64 path) and press Enter. A success message should appear indicating the control was registered.

4
Add the control to the VBA Toolbox

Open Excel, press ALT + F11 to launch the VBA Editor. Insert a UserForm, right-click the Toolbox, select 'Additional Controls', check 'Microsoft Date and Time Picker Control', and click OK.

Register MSCOMCT2.OCX for 32-bit Office
Registration Successful: Once registered, the calendar icon will appear in your VBA Toolbox, allowing you to drag and drop it onto your UserForms.
Free Microsoft Office alternative

Use WPS Office for Seamless Spreadsheet Management

Legacy ActiveX controls like DTPicker often face 32-bit/64-bit compatibility hurdles in Microsoft Excel. Switch to WPS Office for a lightweight, highly compatible spreadsheet environment that focuses on modern, hassle-free data entry without relying on outdated VBA architectures.

  1. 1. Download the software: Visit the official WPS Office website to download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the installer and follow the quick on-screen instructions to set up WPS Spreadsheets on your device.
  3. 3. Open your files: Launch WPS Spreadsheets and open your existing Excel workbooks seamlessly to continue working without compatibility interruptions.
Fully compatible with Microsoft Excel (.xlsx, .xls, .xlsm, .csv) formats.Lightweight installation and incredibly fast processing for large datasets.Built-in robust data validation tools for intuitive date entry.Free to use with a familiar, easy-to-navigate tabbed user interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why is MSCOMCT2.OCX not registering on my computer?

This typically occurs if the Command Prompt is not run as an Administrator, or if the file was placed in the incorrect system directory. Ensure you use the SysWOW64 folder on a 64-bit Windows machine running 32-bit Office.

Can I force the DTPicker control to work in Excel 64-bit?

No, the Microsoft Date and Time Picker (contained in MSCOMCT2.OCX) is exclusively a 32-bit legacy control. It is architecturally incompatible with 64-bit versions of Excel, and you must use a non-ActiveX alternative.

Where can I find the Additional Controls option in Excel VBA?

In the VBA Editor, you must first insert or open a UserForm so the Toolbox window appears. Right-click anywhere on the blank space of the Toolbox palette and select 'Additional Controls' from the context menu to locate your registered controls.