Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi-
I wrote a Macro to automatically save a sheet in a text file output format. This is the code used: Sheets("AccessTable").Select Cells.Select ActiveWorkbook.SaveAs Filename:="C:\Data\RV Reserve\AccessTable.txt", _ FileFormat:=xlText, CreateBackup:=False How can I stop Excel from asking if I want to replace the existing saved file? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try Sheets("AccessTable").Select Cells.Select application.displayalerts = false ActiveWorkbook.SaveAs Filename:="C:\Data\RV Reserve\AccessTable.txt", _ FileFormat:=xlText, CreateBackup:=False application.displayalerts = True -- Regards Frank Kabel Frankfurt, Germany Paul wrote: Hi- I wrote a Macro to automatically save a sheet in a text file output format. This is the code used: Sheets("AccessTable").Select Cells.Select ActiveWorkbook.SaveAs Filename:="C:\Data\RV Reserve\AccessTable.txt", _ FileFormat:=xlText, CreateBackup:=False How can I stop Excel from asking if I want to replace the existing saved file? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Paul
Application.DisplayAlerts = False ' your code Application.DisplayAlerts = True Regards Trevor "Paul" wrote in message ... Hi- I wrote a Macro to automatically save a sheet in a text file output format. This is the code used: Sheets("AccessTable").Select Cells.Select ActiveWorkbook.SaveAs Filename:="C:\Data\RV Reserve\AccessTable.txt", _ FileFormat:=xlText, CreateBackup:=False How can I stop Excel from asking if I want to replace the existing saved file? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Enter Application.DisplayAlerts=False before the SaveAs
command, then Application.DisplayAlerts=True after. -----Original Message----- Hi- I wrote a Macro to automatically save a sheet in a text file output format. This is the code used: Sheets("AccessTable").Select Cells.Select ActiveWorkbook.SaveAs Filename:="C:\Data\RV Reserve\AccessTable.txt", _ FileFormat:=xlText, CreateBackup:=False How can I stop Excel from asking if I want to replace the existing saved file? . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to Save without the Save Message | Excel Discussion (Misc queries) | |||
How to save file without the save message? | Excel Programming | |||
eliminating "newer version" message when saving | Excel Programming | |||
save on exit message box | Excel Programming | |||
save on exit message box | Excel Programming |