Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JohnUK
 
Posts: n/a
Default Changiing defaults in VBA

Can anyone help me with this one - I need a code that
over writes the defaults when saving a document. For
example, when opening a workbook from one location and
saving into a different location with a file with the
same name, I need it to save without the "This file
already exists, do you want to replace the existing
file?" The default is set to NO, but I need it to be YES
Many thanks in advance
John

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Precede with

Application.DisplayAlerts = False

and reset afterwards.

--

HTH

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


"JohnUK" wrote in message
...
Can anyone help me with this one - I need a code that
over writes the defaults when saving a document. For
example, when opening a workbook from one location and
saving into a different location with a file with the
same name, I need it to save without the "This file
already exists, do you want to replace the existing
file?" The default is set to NO, but I need it to be YES
Many thanks in advance
John



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
Text import wizard defaults? Bruce Bowler Excel Discussion (Misc queries) 4 April 3rd 23 10:57 AM
excel defaults "i" to upper case Joe Excel Discussion (Misc queries) 1 February 18th 05 06:45 PM
Change Margin Defaults Amanda Setting up and Configuration of Excel 1 January 15th 05 12:56 AM
Can you change the defaults for Excel ? Nino Richards Excel Discussion (Misc queries) 1 December 15th 04 04:35 PM
Footer defaults Joe S. Excel Discussion (Misc queries) 4 December 9th 04 10:00 PM


All times are GMT +1. The time now is 11:58 PM.

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"