Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to "saveas" the active workbook and would prefer to have the
system enter throught he prompt that the file exists and do i want to replace it? In this particular case, I always with to replace it. My current is as follows: ActiveWorkbook.SaveAs (conSaveFilePath & strRespFileName) conSaveFilePath is a file path constant and strRespFileName is a variable containing the file name. Or...should i be dealing with this differently? thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi faberk,
Application.DisplayAlerts = False ActiveWorkbook.SaveAs (conSaveFilePath & strRespFileName) Application.DisplayAlerts = True This will effectively answer "yes" to the overwrite prompt. -- Regards, Jake Marx MS MVP - Excel www.longhead.com [please keep replies in the newsgroup - email address unmonitored] faberk wrote: I am trying to "saveas" the active workbook and would prefer to have the system enter throught he prompt that the file exists and do i want to replace it? In this particular case, I always with to replace it. My current is as follows: ActiveWorkbook.SaveAs (conSaveFilePath & strRespFileName) conSaveFilePath is a file path constant and strRespFileName is a variable containing the file name. Or...should i be dealing with this differently? thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Precede with
Application.Display = False and reset to True afterwards. -- HTH RP (remove nothere from the email address if mailing direct) "faberk" wrote in message ... I am trying to "saveas" the active workbook and would prefer to have the system enter throught he prompt that the file exists and do i want to replace it? In this particular case, I always with to replace it. My current is as follows: ActiveWorkbook.SaveAs (conSaveFilePath & strRespFileName) conSaveFilePath is a file path constant and strRespFileName is a variable containing the file name. Or...should i be dealing with this differently? thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Spellchecker got me
Application.DisplayAlerts = False -- HTH RP (remove nothere from the email address if mailing direct) "Bob Phillips" wrote in message ... Precede with Application.Display = False and reset to True afterwards. -- HTH RP (remove nothere from the email address if mailing direct) "faberk" wrote in message ... I am trying to "saveas" the active workbook and would prefer to have the system enter throught he prompt that the file exists and do i want to replace it? In this particular case, I always with to replace it. My current is as follows: ActiveWorkbook.SaveAs (conSaveFilePath & strRespFileName) conSaveFilePath is a file path constant and strRespFileName is a variable containing the file name. Or...should i be dealing with this differently? thanks |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you gentlemen!
"faberk" wrote: I am trying to "saveas" the active workbook and would prefer to have the system enter throught he prompt that the file exists and do i want to replace it? In this particular case, I always with to replace it. My current is as follows: ActiveWorkbook.SaveAs (conSaveFilePath & strRespFileName) conSaveFilePath is a file path constant and strRespFileName is a variable containing the file name. Or...should i be dealing with this differently? thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Confused here Prevent Saving File - but allow ONLY File SAVEAS Met | Excel Discussion (Misc queries) | |||
IF File Exists | Excel Programming | |||
File already exists | Excel Programming | |||
SaveAs command when a file already exists? | Excel Programming | |||
the file already exists - do you want to replace the existing file? | Excel Programming |