ChuckDrago
Active Member
- Joined
- Sep 7, 2007
- Messages
- 470
- Office Version
- 2010
- Platform
- Windows
Hi everyone.
I have a macro that includes an e-mail button to e-mail the active workbook as an attachment. Because the recipients add information to it, I included in the e-mailing code the line ActiveWorkbook.Save.
When executed for the first time, this line causes Excel to display the message
"A file named (filename) already exists in this location. Do you want to replace it?"
to which I'd like to code an automatic response of Yes. Better yet, if there is a way to elilminate the message from displaying but allowing the save operation to complete it would be great.
Suggestions please? Thank you all.
I have a macro that includes an e-mail button to e-mail the active workbook as an attachment. Because the recipients add information to it, I included in the e-mailing code the line ActiveWorkbook.Save.
When executed for the first time, this line causes Excel to display the message
"A file named (filename) already exists in this location. Do you want to replace it?"
to which I'd like to code an automatic response of Yes. Better yet, if there is a way to elilminate the message from displaying but allowing the save operation to complete it would be great.
Suggestions please? Thank you all.