Solved

Excel SaveFile YesNoCanel box

Posted on 2011-09-16
5
245 Views
Last Modified: 2012-06-22
In VBA how do I force answer Yes each time I want to save a file.  I have a file that I save to multiple locations and I want it to not need that question answered each time.  Can this be done?  -R-
FileSaveYesNoCancel.png
0
Comment
Question by:RWayneH
  • 2
  • 2
5 Comments
 
LVL 6

Assisted Solution

by:effes
effes earned 150 total points
ID: 36551768
Have a look at his: http://www.vbforums.com/showthread.php?t=528826

Hope that helps.
0
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 350 total points
ID: 36551879
In VBA, add the following line of code early in the macro:

Application.DisplayAlerts = False

This will disable overwrite messages such as above.

You also need turn this back on before exit.
Application.DisplayAlerts = True
0
 

Author Comment

by:RWayneH
ID: 36551922
Thanks!!  Will this work when deleting sheet tabs too?  -R-
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 36551969
RE: Deleting sheet tabs...yes, it will.

That's why you have to be careful with this function.  If it remains FALSE, you can bypass messages during your Excel session that might prevent accidental overwriting/deletion.
0
 

Author Closing Comment

by:RWayneH
ID: 36552829
Thanks for the help. -R-
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

708 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

17 Experts available now in Live!

Get 1:1 Help Now