View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Duncan[_5_] Duncan[_5_] is offline
external usenet poster
 
Posts: 290
Default Overwrite option when saving a workbook

Bharath,

I think its...

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

HTH
Duncan



Bharath Rajamani wrote:

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,