Solved

Excel Object Reference

Posted on 2004-09-24
2
215 Views
Last Modified: 2010-05-02
Hi
my project was running perfectly.
I installed the windows Service Pack2.
Now I tried to run my program again and it tells me that Excel Object reference is missing.
But under Project/Reference this has been ticked.

Now I made a new project and i donot receive this error.

How can I upgrade my old project.

thanks a lot.
0
Comment
Question by:SindhujaCheema
2 Comments
 
LVL 14

Accepted Solution

by:
aelatik earned 125 total points
ID: 12141004
Open your VB project > Reselect the reference and compile it again.

But a better solution would be to use late binding instead of early binding.
The benefit of late binding is that it does not check for the exact version you referenced.

For example, if you declare the object like this :

Dim XXX as NEW Excel.Application

then change it to

Dim XXX
Set XXX = CreateObject("excel.application")
0
 

Author Comment

by:SindhujaCheema
ID: 12141286
Thank you very much.
it works now.
I am using late binding as suggested by u.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question