Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3795260
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:03:24+00:00 2026-05-19T13:03:24+00:00

I have been working on a Excel workbook with lots of VBA code for

  • 0

I have been working on a Excel workbook with lots of VBA code for a while and now I have send this file to some colleagues for testing and it does NOT work in their computer.
We all work in the same company and have Windows XP SP2 with Office 2003.

The workbook has a form that opens when clicking over a shape and it contains some controls.
When they click over the shape for the form to show the following error appears:

“Object Library invalid or contains
references to object defintions that
could not be found”

In the form there is a DatePicker and I think there lies the problem. If I delete the datePicker from the form and send them the file again they do not get this error message.

I already tried deleting the mscomct2.exd file as mentioned in this two sites “Microsoft” and “lessanvaezi” but the error stil pops. I checked and the new .exd file was generated.

Some Additional info:

  1. I check their system and they do have the file mscomct2.ocx in the correct location(c:\Winxp\System32).
  2. If I open a empty Excel file, go to the VBA editor go to Tools->Reference, I do NOT see the option to register the “Microsoft Common Control-2 6.0 (SP6)” (mscomct2.ocx). Instead I see a “Microsoft Windows Common Controls Satellite-3 6.2)” (cmct3de.dll).
  3. I send my collegue the file with the datePicker, but without the reference to the “Microsoft Common Control-2 6.0 (SP6)”. Before clicking the shape and opening the form I tried to reference the MSCOMCT2.ocx library dinamically with the following code. It referenced the “Microsoft Common Control-2 6.0 (SP6)” but the error still pops.

Sub RegisterCtl()

'MSComCt2.ocx
strGUID = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}"
ThisWorkbook.VBProject.References.AddFromGuid guid:=strGUID, Major:=1, Minor:=0

end Sub

  1. If I then go to the form in the VBE editor and rightClick on the
    toolbox and then go to the
    Additional controls to add the
    “Microsoft Date and TimePicker”
    control, I see that option listed
    Two times. Unfortunatelly regarless
    of wich one I cchose, the behaviour
    is the same: The datepicker symbol
    is added in the toolbox, but when I
    drag the control to the form, a
    msgBox pops saying that the control
    was not available.

Has anybody an idea what is wrong? What can I do to make it run in their computer?

I appreciate any help.

Edit:

The computer with this problem has been Upgraded so I wont be able to find the specific solution for my case. I’m choosing Archers solution as it has helped the most people (Most Upvotes).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T13:03:25+00:00Added an answer on May 19, 2026 at 1:03 pm

    I have the same problem too. http://support.microsoft.com/kb/957924/en-us delete all .exd files make my program work!

    Go into a command prompt and type the following DOS commands:

    Code:

    CD \Documents and Settings

    DEL /S /A:H /A:-H *.EXD

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on some legacy C++ code that uses variable length structures
I have an Excel file that has a bunch of VBA and macro code
I have been working with managing agile teams for quite some time. Now I'm
I have been working on an application in Xcode for a while now and
I have been working as a native C++ programmer for last few years. Now
I have been working with Struts for some time, but for a project I
1) I have been working on fetching data from an excel sheet i can
I have been working on Android for a few months. Now i want to
I have been working with some complex PDF outputs with reportlab. These are generally
I have been working on this program for quite sometime and my brain is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.