Overwrite Yes/No

barski

Well-known member
Joined
Apr 7, 2002
Messages
239
Location
Tennessee
How do I prevent the overwrite yes/no popup when saving output as Excel?
heres how Im saving

xlBook.SaveAs(@"c:\" + fileName,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Excel.XlSaveAsAccessMode.xlNoChange,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value);
 
Im with you I figured it was one the args in the saveas however it is one the properties of the app

xlApp.DisplayAlerts = false
 
Back
Top