Solved

Excel Object Reference

Posted on 2004-09-24
2
193 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

759 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now