Solved

Excel Object Reference

Posted on 2004-09-24
2
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month5 days, 7 hours left to enroll

627 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