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

  • Home
  • SEARCH
  • 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 8156679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:01:55+00:00 2026-06-06T17:01:55+00:00

I have a VB6 application running for years. This application always reference Excel 2003

  • 0

I have a VB6 application running for years. This application always reference Excel 2003 in the past for creating XLS files. Now we would like to use Excel 2010 in place of 2003. So I installed only Excel 2010 on a separate dev computer and load my vb6 project.

When running the app, I got the error where my ‘Microsoft Excel 10.0 Object Library’ is missing. This is true because only Excel 2010 is installed on this computer and no more Excel 2003.

The problem is that when I would like the correct reference, I didn’t find any ‘Microsoft Excel 14.0 Object Library’ or something equivalent for replacing this reference.

Any suggestion?

Thanks.

  • 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-06-06T17:01:58+00:00Added an answer on June 6, 2026 at 5:01 pm

    Early bound reference are “bound” (excuse the pun) to cause a problem on applications being distributed to users with different Excel versions.

    Using late binding and coding for the earliest version of Excel you are willing to support is the solution. For example, if you were supporting Excel 2000, your application would only use methods supported in Excel 2000.

    However, if your code was late bound, you could use ambiguous method calls and detect the local version to determine which code to run.

    Ex:

    Dim excelVersion As Long  
    Dim xl As Object
    
    ' get a reference to Excel.Application maybe from AddinInstance_OnConnection()?  
    excelVersion = Val(xl.Version)
    
    Select Case excelVersion 
    Case 11 ' Excel 2003
      ' Excel 2003-only methods here
      ' ex: xl.FileSearch
    Case 12 ' Excel 2007
      ' Excel 2007-only methods here
    Case 14 ' Excel 2010
      ' Excel 2010-only methods here
      ' ex: something with Slicers
    End Select
    

    Since the code is late bound (i.e. derived from Object), I can specify methods that are valid only in Excel 2010 and the code will still compile. If the code was early bound to Excel 2003, it wouldn’t compile. At runtime I determine the version to decide which methods to use.

    You might also consider compiling different versions of your application, if you are using Excel 2010-specific features. Only you would know if that is possible.

    Also, and I thought of this after writing this answer, but can’t you reference Excel 2010 in your app, and if it is installed on computers with earlier versions of Excel, won’t the reference automatically adjust to whatever version of Excel is installed?

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

Sidebar

Related Questions

I have a VB6's Application that is in production environment right now, this application
I have to create a DLL which is used by a VB6 application. This
I have a VB6 application which opens files with their associated application using: ShellExecute(0,
I have created a manifest file for a VB6 application that is running on
We have a VB6 application running at a customer that has a bug in
We have a legacy VB6 application that is very procedural. This thing is gigantic!
I have a VB6 application that is creating a JSON string and posting it
I have a rather legacy application EXE written in VB6 and running on a
I have a VB6 application that needs to update it's self. For this purpose,
I have a client that is running a custom VB 6 application they wrote

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.