Bass71
MIS
- Jun 21, 2001
- 79
Hi there:
I have a macro in excel that formats a sheet and then saves it, replacing an existing file with same name. THe message box that pops up asks if I want to replace this file with YES-NO-CANCEL buttons. The NO button is always defaulted.
Can I put a line of code previous to the SaveAs command that will change the message box button default to YES?
Here is the code previous to saving...
ActiveWorkbook.SaveAs FileName:="C:\notes\Export\TASHost.txt", FileFormat:= _
xlTextPrinter, CreateBackup:=False
Thanks..............
I have a macro in excel that formats a sheet and then saves it, replacing an existing file with same name. THe message box that pops up asks if I want to replace this file with YES-NO-CANCEL buttons. The NO button is always defaulted.
Can I put a line of code previous to the SaveAs command that will change the message box button default to YES?
Here is the code previous to saving...
ActiveWorkbook.SaveAs FileName:="C:\notes\Export\TASHost.txt", FileFormat:= _
xlTextPrinter, CreateBackup:=False
Thanks..............