Save As without overwrite prompt

F

Fred Smith

I want to overwrite an old file without getting prompted as to whether it's
OK.

Is there something I can specify on the SaveAs command? Or do I delete the
old file first (if it's there)?
 
C

Cesar Zapata

Hi,

use the

application.displayalerts = false
thisworbook.save
application.displayalerts = true
 
T

Tom Ogilvy

a nitpick, but you shouldn't need that with save for a workbook that has
been previously saved, but as the OP specified SAVEAS

application.displayalerts = false
thisworbook.saveas . . .
application.displayalerts = true
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top