Consulting

Results 1 to 6 of 6

Thread: Solved: Object library invalid........

  1. #1

    Solved: Object library invalid........

    I'm attempting to 'upgrade' a file from Excel 2000 to Excel 2007. The file contains many macros which don't work under 2007.

    When I try to run any of the macros I receive the error message: "Object library invalid or contains references to object definitions that could not be found".

    I have checked the references under both 2000 and 2007 and the only differences are that the 2000 version uses Microsoft Excel 9.0 Object Library and Microsoft Office 9.0 Object Library whereas under Excel 2007 it's using Microsoft Excel 12.0 Object Library and Microsoft Office 12.0 Object Library.

    Is this causing the problem and if it is why are the later versions of these object libraries not backward compatible with earlier versions?

    Thanks in advance,

    Paul
    Keep the rubber side down and the shiny side up

  2. #2
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Certainly no expertise here, as I do not have 2007. When you get the errors, have you checked the references to see what it says is 'MISSING:'?

    Usually, going to a newer version is cake, as the newer version knows where to sub libraries/versions. The only thing I've personally heard of 'disappearing' was Application.FileSearch.

  3. #3
    I've checked the references and there is nothing missing and the only differences are going from version 9.0 to 12.0 of the MS Excel Object Library and MS Office Object Library.

    Keep the rubber side down and the shiny side up

  4. #4
    VBAX Regular FF Ethan's Avatar
    Joined
    May 2010
    Location
    Boardman, OR
    Posts
    28
    Location
    Sounds like a pretty big problem. Can you post an example of what your getting errors on?
    Ethan Ellis
    Before VBA Express After VBA Express.

  5. #5
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,098
    Location
    Why its not backward compatible is a question for Microsoft. However it is reasonable to assume that with each version released there should be "improvements". These improvements sometimes means that somethings may be no longer available or have been changed and this effects its compatability.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  6. #6
    Right then.

    I seem to have 'solved' the problem after a serious session of head scratching.

    The problem actually got worse in that for a time I was unabe to save the file on top of the problem with the macros not running. I seem to remember having this problem before and it having something to do with the macros not being loaded into memory - or something like that.

    I looked through the different modules and forms in the file and came across an obsolete userform, after deleting it all my problems went away. The macros started working and I was able to save the file again.

    Not much of a solution I know, but everything is hunky dory again.
    Keep the rubber side down and the shiny side up

Posting Permissions

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