Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-04-30
2
Medium Priority
?
1,737 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 53

Accepted Solution

by:
Rgonzo1971 earned 2000 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

876 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