Overwrite option when saving a workbook

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Upon closing a new workbook, Is there a way to overwrite any other workbook
of the same name in the given folder, without halting the macro to ask the
user?

wbkR.Close SaveChanges:=True, Filename:= "Spreads.xls"


Rgds,
 
Bharath,

I think its...

Application.DisplayAlerts = False
'your code
Application.DisplayAlerts = true

HTH
Duncan
 

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

Back
Top