#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default overwrite

Hi

ActiveWorkbook.SaveAs newfilename

If newfilename already exists at the saving location, a prompt will pop up
to confirm overwrite. Can I say Yes through the codes instead of manually
clicking on the Yes button ?

Thanks
Steve


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default overwrite

Application.DisplayAlerts = False
.... code
Application.DisplayAlerts = True

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SP" <none wrote in message ...
Hi

ActiveWorkbook.SaveAs newfilename

If newfilename already exists at the saving location, a prompt will pop up
to confirm overwrite. Can I say Yes through the codes instead of manually
clicking on the Yes button ?

Thanks
Steve




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default overwrite

Thank you...cool.

Steve

"Bob Phillips" wrote in message
...
Application.DisplayAlerts = False
... code
Application.DisplayAlerts = True

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SP" <none wrote in message ...
Hi

ActiveWorkbook.SaveAs newfilename

If newfilename already exists at the saving location, a prompt will pop
up
to confirm overwrite. Can I say Yes through the codes instead of
manually
clicking on the Yes button ?

Thanks
Steve






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
Match/Overwrite Jason W Excel Discussion (Misc queries) 1 December 29th 08 08:08 PM
Save As / Overwrite Brent E Excel Discussion (Misc queries) 4 October 23rd 08 08:19 PM
Overwrite Changes when saving Shari Kolbo Charts and Charting in Excel 1 January 11th 06 04:16 AM
Q: overwrite during saveas JIM.H. Excel Discussion (Misc queries) 1 January 5th 05 07:27 PM
Prompt to overwrite Karen[_10_] Excel Programming 2 October 16th 03 08:24 PM


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