Solved

Getting compile error in VBA

Posted on 2013-11-14
3
433 Views
Last Modified: 2013-11-14
I have created an Excel dashboard for my users.  When I log into my client's server and run the Excel 2007 application, it runs without a problem.  

When one of the users open the Excel application he gets the error:

Compile Error:  Can't find project or library.

In the Debugger the following is highlighted:

ApplicationDisplayAlerts = False

The Option Button has the following VBA code attached to it:

If Range ("A1") = "Exit without Saving Changes" then
     ApplicationDisplayAlerts = False
     ActiveWorkbook.Close False
     Application.Quit
End If

How can I fix the problem when the users run this application from their desktops?

thanks

glen
0
Comment
Question by:GPSPOW
  • 2
3 Comments
 
LVL 45

Accepted Solution

by:
Martin Liss earned 500 total points
Comment Utility
It should be   Application.DisplayAlerts = False

Note the period.
0
 

Author Closing Comment

by:GPSPOW
Comment Utility
Thank you
0
 
LVL 45

Expert Comment

by:Martin Liss
Comment Utility
You're welcome and I'm glad I was able to help.

Marty - MVP 2009 to 2013
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

771 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

11 Experts available now in Live!

Get 1:1 Help Now