Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default within a macro how can I suppress the warning pop "A file named xxxx.xls already exists in this location. Do you want to replace it?"

Kevin,

Application.displayalerts=false

Activeworkbook.saveas filename:="C:\SameName.xls"

Application.displayalerts=true

-----Original Message-----
Within a macro how can I suppress/omit the warning pop "A

file named xxxx.xls already exists in this location. Do
you want to replace it?"

Thanks in advance.

Sincerely,
Kevin Waite



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
Why doesn't "Replace" function find value I know exists? UHAAdminAsst Excel Worksheet Functions 4 January 28th 10 07:14 PM
"the file already exsists in this location do you want to replace. jenn Excel Discussion (Misc queries) 7 October 9th 06 07:19 PM
Why Am I Getting the "Named Argument Not Found" Warning? Wuddus Excel Discussion (Misc queries) 2 August 31st 06 12:28 PM
Subtotal without "xxxx total" but only xxxx ashish128 Excel Discussion (Misc queries) 3 May 2nd 06 01:07 PM
How do you replace an existing file, saying "yes" in a macro? Chris Excel Programming 0 November 19th 03 03:25 PM


All times are GMT +1. The time now is 10:17 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"