Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I execute saveAs without getting a dialog box asking if it is ok to
overwrite the file? I am trying to save in a specific format and if I undertand correctly, the "FileFormat" parameter is not available for a straight save. Thanks, Keith |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Keith,
There are two ways to do this. The first way is to Kill the file and then do a Save As. E.g., On Error Resume Next Kill "H:\Book2.xls" On Error GoTo 0 ThisWorkbook.SaveAs Filename:="H:\book2.xls" Or, you can turn off alerts, do the save, then turn alerts back on. Application.DisplayAlerts = False ThisWorkbook.SaveAs Filename:="H:\Book2.xls" Application.DisplayAlerts = True -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "keithb" wrote in message ... How can I execute saveAs without getting a dialog box asking if it is ok to overwrite the file? I am trying to save in a specific format and if I undertand correctly, the "FileFormat" parameter is not available for a straight save. Thanks, Keith |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SaveAs dialog | Excel Discussion (Misc queries) | |||
SaveAs Dialog box | Excel Programming | |||
Supress SaveAs dialog box? | Excel Programming | |||
Disable Saveas Dialog | Excel Programming | |||
Saveas Dialog Box | Excel Programming |