+ Reply to Thread
Results 1 to 2 of 2

Windows 8, Excel 2013 and Project 2010 - Reference Error in Macro

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    Anaheim, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Windows 8, Excel 2013 and Project 2010 - Reference Error in Macro

    We have a macro that exports the data from Project 2010 to an excel file. It works well when we use it on a Windows 7 or a Windows 8 machine, but with Office 2010 installed. But now when I am testing it on a Windows 8 Machine with Project 2010 standard but Office 2013, I am getting a Compile error of Cant find the project or Library.

    The macro references Microsoft Excel 14.0 Object Library (under VBA menu - Tools - References ) on the machines that it works fine. But on the Windows 8/Office 2013 machine it references to Microsoft 15.0 Object Library. Is this what is causing the error?

    Can someone please help me how to figure this error out? How do change the reference or fix the reference?
    Thanks

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Windows 8, Excel 2013 and Project 2010 - Reference Error in Macro

    Hi,

    The macro references Microsoft Excel 14.0 Object Library (under VBA menu - Tools - References ) on the machines that it works fine. But on the Windows 8/Office 2013 machine it references to Microsoft 15.0 Object Library. Is this what is causing the error?
    I'd say yes.

    If you don't care about a longer run-time and loss of constants of your code you can get rid of compatibility issues with references using late binding: LINK
    The difference in run-time depends on the code itself.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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