Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Overwrite option when saving a workbook


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,
  #2   Report Post  
Posted to microsoft.public.excel.programming
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,


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving an Excel file & overwrite (C++) Zorb Excel Programming 0 June 14th 06 03:12 PM
Overwrite Changes when saving Shari Kolbo Charts and Charting in Excel 1 January 11th 06 04:16 AM
Calc status of open excel workbook should not overwrite another Michael Hill Setting up and Configuration of Excel 1 October 28th 05 06:48 PM
want to overwrite Excel workbook instead of appending new data Excel Excel Discussion (Misc queries) 1 September 8th 05 08:06 PM
Saving to network drive gives unwanted copy or overwrite message Bill Excel Discussion (Misc queries) 2 July 29th 05 02:25 AM


All times are GMT +1. The time now is 03:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"