+ Reply to Thread
Results 1 to 16 of 16

Object library invalid or contains references to object definitions that could not be foun

  1. #1
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Object library invalid or contains references to object definitions that could not be foun

    I am getting this vba error with a spreadsheet that has macros on a laptop which it used to work on as of Dec. 10th! It is running the same Excel, 2010 as my home computer, the only difference is my home computer was 32bit windows and the laptop has 64bit. This same spreadsheet works fine on the desktop computer! I have tried deleting the .exd files, but that did not help. I also have come across to unregister the MSCOMCTL.OCX file and then register it again, but I have not tried this yet as it is in the folder but I did try but did not have any luck, the reply was the file is not found. Any other ideas out there that will help? Thanks in advance!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Object library invalid or contains references to object definitions that could not be

    Hello thecdnmole,

    There are several ActiveX controls that are no longer supported in 64 bit only Windows. Unfortunately, there is not always a newer control to replace it or a work around available.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Object library invalid or contains references to object definitions that could not be

    Did this change just happen? As I said, everything was fine until just a few days ago.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Object library invalid or contains references to object definitions that could not be

    Hello thecdnmole,

    No, it was several years ago. I would defragment the Registry on the offending computer and try it again.

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Object library invalid or contains references to object definitions that could not be

    What references do you have set in the workbook?
    Remember what the dormouse said
    Feed your head

  6. #6
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Object library invalid or contains references to object definitions that could not be

    Sorry romperstomper, I am quite new to this vba, what do you mean by "what references do I have set in the workbook"?

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Object library invalid or contains references to object definitions that could not be

    In the VB editor, with that workbook active, click Tools - References and see which items are checked.

    Re the .exd files, how many did you delete?

  8. #8
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Object library invalid or contains references to object definitions that could not be

    There were many .exd files I deleted, think about 30.
    Excel_ref.png

  9. #9
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Object library invalid or contains references to object definitions that could not be

    Well the timing would certainly suggest the problem is the recent office updates - have you read the article linked to in my signature? (you'll have to check my first post to this thread to see my signature, due to a barmy decision by the powers that be)

  10. #10
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Object library invalid or contains references to object definitions that could not be

    I was looking at it, but got busy with another item.

  11. #11
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Object library invalid or contains references to object definitions that could not be

    When this error occurs, it brings up the vba code and highlights "option explicit" in blue. Does that mean something?

    Also, my work laptop is NOT 64bit, it is only 32bit, but my home Office suite is "Professional" whereas the work one is "Standard". Hopefully that is not the reason that something I've used in vba only works in the PRO version of Excel?

  12. #12
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Object library invalid or contains references to object definitions that could not be

    I have tried the "Fixits" to no avail. It looks like I do not have one of the latest updates, which is FM20.dll.

  13. #13
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Object library invalid or contains references to object definitions that could not be

    You must have fm20.dll or you could not use user forms or any MSForms controls on worksheets.

  14. #14
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Object library invalid or contains references to object definitions that could not be

    Oh ya, it's there, just not the Nov. 19, 2014 version, it's from 2010. Just tried running same SS on my son's laptop which is running Office 2013 and it opens, but does not like "AppActivate" in the code! Gotta love computers!

  15. #15
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Object library invalid or contains references to object definitions that could not be

    If you scroll to the bottom of the link provided, a comment is made by David Fabian suggesting that if the update was done on computer A, then you try and run software from A on B, it will not work if B has not been updated. I installed the update on B and deleted the .exd files, rebooted and back to normal!

    http://excelmatters.com/2014/12/10/o...ivex-controls/

  16. #16
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Object library invalid or contains references to object definitions that could not be

    It's my site.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Compile error : object library invalid or contains references
    By SIMBAtheCAT in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2014, 10:25 PM
  2. Replies: 12
    Last Post: 06-20-2012, 01:53 PM
  3. Object Library Invalid
    By c.vaibhav in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2012, 01:06 PM
  4. “Object library invalid” error
    By PY_ in forum Excel General
    Replies: 6
    Last Post: 04-16-2012, 08:14 PM
  5. object library invalid or contains references Error in addin Excel 2003
    By c.vaibhav in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-18-2009, 11:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1