Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Getting compile error in VBA

Posted on 2013-11-14
3
Medium Priority
?
445 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
[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
3 Comments
 
LVL 49

Accepted Solution

by:
Martin Liss earned 2000 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 49

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

596 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