Solved

Getting compile error in VBA

Posted on 2013-11-14
3
439 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 47

Accepted Solution

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

Note the period.
0
 

Author Closing Comment

by:GPSPOW
ID: 39648383
Thank you
0
 
LVL 47

Expert Comment

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

Marty - MVP 2009 to 2013
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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