Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Good Day,
I am using macros in an Excel file perform sorts on data and save each sort type as a seperate html file. I want to be able to use this macro to perform automatic updates. If I use the Workbook.SaveAs command, I am constantly prompted whether to overwrite the existing file. I do not want this box to appear. Is there a variant to the Workbook.SaveAs command that automatically overwrites a file with the same file name without prompting for a yes/no/cancel? Thanks, |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Try something like this Sub SaveMeeeee() Application.DisplayAlerts = False ThisWorkbook.SaveAs Filename:="MyFileName" Application.DisplayAlerts = True End Sub Mike "Brent E" wrote: Good Day, I am using macros in an Excel file perform sorts on data and save each sort type as a seperate html file. I want to be able to use this macro to perform automatic updates. If I use the Workbook.SaveAs command, I am constantly prompted whether to overwrite the existing file. I do not want this box to appear. Is there a variant to the Workbook.SaveAs command that automatically overwrites a file with the same file name without prompting for a yes/no/cancel? Thanks, |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Mike,
I think that'll work. I'll let you know momentarily. "Mike H" wrote: Hi, Try something like this Sub SaveMeeeee() Application.DisplayAlerts = False ThisWorkbook.SaveAs Filename:="MyFileName" Application.DisplayAlerts = True End Sub Mike "Brent E" wrote: Good Day, I am using macros in an Excel file perform sorts on data and save each sort type as a seperate html file. I want to be able to use this macro to perform automatic updates. If I use the Workbook.SaveAs command, I am constantly prompted whether to overwrite the existing file. I do not want this box to appear. Is there a variant to the Workbook.SaveAs command that automatically overwrites a file with the same file name without prompting for a yes/no/cancel? Thanks, |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks worked. Thanks Mike.
"Mike H" wrote: Hi, Try something like this Sub SaveMeeeee() Application.DisplayAlerts = False ThisWorkbook.SaveAs Filename:="MyFileName" Application.DisplayAlerts = True End Sub Mike "Brent E" wrote: Good Day, I am using macros in an Excel file perform sorts on data and save each sort type as a seperate html file. I want to be able to use this macro to perform automatic updates. If I use the Workbook.SaveAs command, I am constantly prompted whether to overwrite the existing file. I do not want this box to appear. Is there a variant to the Workbook.SaveAs command that automatically overwrites a file with the same file name without prompting for a yes/no/cancel? Thanks, |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Glad I could help and thanks for the feedback
"Brent E" wrote: Thanks worked. Thanks Mike. "Mike H" wrote: Hi, Try something like this Sub SaveMeeeee() Application.DisplayAlerts = False ThisWorkbook.SaveAs Filename:="MyFileName" Application.DisplayAlerts = True End Sub Mike "Brent E" wrote: Good Day, I am using macros in an Excel file perform sorts on data and save each sort type as a seperate html file. I want to be able to use this macro to perform automatic updates. If I use the Workbook.SaveAs command, I am constantly prompted whether to overwrite the existing file. I do not want this box to appear. Is there a variant to the Workbook.SaveAs command that automatically overwrites a file with the same file name without prompting for a yes/no/cancel? Thanks, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save As - Can I use VBA? to stop XL Sheet overwrite | Excel Discussion (Misc queries) | |||
How to save a file without overwrite or save a copy? | Setting up and Configuration of Excel | |||
why do I get a message that says save a copy or overwrite changes | Excel Discussion (Misc queries) | |||
Save a Copy/Overwrite changes dialog box | Excel Discussion (Misc queries) | |||
Save a Copy/Overwrite changes dialog box | Excel Worksheet Functions |