Solved

Access VBA stops understanding "Dim excelApp As excel.Application"

Posted on 2014-04-30
2
1,568 Views
Last Modified: 2014-04-30
My Access project stopped working, Suddenly it does not recognise a statement like
"Dim excelApp As excel.Application" . It worked an hour earlier. Even if I restart my computer it still gives error message like below. I also include picture of my references.

I copied the same form to another project and it works. What could have gone wrong?

I will try to solve the problem by copying everything over to a new project.

Can you say what went wrong? How can I fix it? How can I prevent it from occurring?

error messagemy references
0
Comment
Question by:Fritz Paul
2 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40031592
Hi,

Is the reference to Excel that is missing

Look for Microsoft Excel 14.0 Object Library

EDIT
if you cannot find it Click Browse and look for the actual Excel.exe (Changing the file type)

Regards
0
 

Author Closing Comment

by:Fritz Paul
ID: 40031598
Well spotted! I love it!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

919 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

18 Experts available now in Live!

Get 1:1 Help Now