Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In one particular section of my module, I'd like to perform a
workbook.saveas that will: 1.) suppress the "file already exists" error message (I can do that with OnError..) 2.) always go ahead and save over the existing file (how?) (I saw someone had asked about a related situation, using On Error GoTo 0 to move on to the next task instead of overwriting the existing file...close but doesn't quite get me there) Help? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe this:
Application.AlertBeforeOverwriting = False Application.AlertBeforeOverwriting = True HTH, Paul wrote in message ups.com... In one particular section of my module, I'd like to perform a workbook.saveas that will: 1.) suppress the "file already exists" error message (I can do that with OnError..) 2.) always go ahead and save over the existing file (how?) (I saw someone had asked about a related situation, using On Error GoTo 0 to move on to the next task instead of overwriting the existing file...close but doesn't quite get me there) Help? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Try it this way Application.DisplayAlerts = False ThisWorkbook.SaveAs "C:\sample.xls" Application.DisplayAlerts = True -- Hope that helps. Vergel Adriano " wrote: In one particular section of my module, I'd like to perform a workbook.saveas that will: 1.) suppress the "file already exists" error message (I can do that with OnError..) 2.) always go ahead and save over the existing file (how?) (I saw someone had asked about a related situation, using On Error GoTo 0 to move on to the next task instead of overwriting the existing file...close but doesn't quite get me there) Help? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use something like:
Application.displayalerts = false 'your code to save the workbook here application.displayalerts = true to suppress that warning dialog. wrote: In one particular section of my module, I'd like to perform a workbook.saveas that will: 1.) suppress the "file already exists" error message (I can do that with OnError..) 2.) always go ahead and save over the existing file (how?) (I saw someone had asked about a related situation, using On Error GoTo 0 to move on to the next task instead of overwriting the existing file...close but doesn't quite get me there) Help? -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you, thank you, and thank you!
On May 4, 9:53 am, Dave Peterson wrote: You can use something like: Application.displayalerts = false 'your code to save the workbook here application.displayalerts = true to suppress that warning dialog. wrote: In one particular section of my module, I'd like to perform a workbook.saveas that will: 1.) suppress the "file already exists" error message (I can do that with OnError..) 2.) always go ahead and save over the existing file (how?) (I saw someone had asked about a related situation, using On Error GoTo 0 to move on to the next task instead of overwriting the existing file...close but doesn't quite get me there) Help? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SaveAs wk3 file type error message | Excel Discussion (Misc queries) | |||
suppress Excel save message | Excel Programming | |||
error message with saveas | Excel Discussion (Misc queries) | |||
Suppress add-in confirmation message | Excel Programming | |||
suppress popup message | Excel Programming |