' Close the workbook with no questions.
ActiveWorkbook.Close (False)
Main Topics
Browse All TopicsI need to use the SaveAs function without any return message, i.e. file already exists, are your sure? Is there a way I can do this? Or, if I can just close the file without without "exit without saving" feedback.
If (WorkbookIsOpen("rawdata.x
Windows("rawdata.xls").Act
ActiveWorkbook.SaveAs _ FileName:="C:\aces\rawdata
End If
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
robjay,
I see a couple of questions here...
1. How to save a workbook without the 'replace ?' question:
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs "c:\test\a.xls"
Application.DisplayAlerts = True
2. How to close a workbook without saving it and without asking:
ActiveWorkbook.Close SaveChanges:=False
Or another way, lie to Excel and say that the workbook is saved:
ActiveWorkbook.Saved = True
ActiveWorkbook.Close
Ture Magnusson
Karlstad, Sweden
This question was awarded, but never cleared due to the JSP-500 errors of that time. It was "stuck" against userID -1 versus the intended expert whom you awarded. This corrects the problem and the expert will now receive these points; points verified.
Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them. If you are an EE Pro user, you can also choose Power Search to find all your open questions.
This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.
http://www.experts-exchang
http://www.experts-exchang
Thank you,
Moondancer
Moderator @ Experts Exchange
Business Accounts
Answer for Membership
by: robjayPosted on 1999-10-04 at 20:08:37ID: 2098701
I want to be able to close a file without any message box asking if I want to save the changes. I tried doing a save before I close, but then again I get a pop up window asking if I want to save the changes.