SaveAs defaults...
- From: "John Keith" <JohnKeith@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 09:09:04 -0700
Using this code to save when the file already exists...
Logfile = "filename.xls"
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:=CurDir() & "\" & Logfile,
ConflictResolution:=xlLocalSessionChanges
Application.DisplayAlerts = True
How do you know which default (yes|no) is taken to the overwrite message?
I assume from all the posts I have seen on this topic that the "yes" default
is taken, but what if you wanted the "no" option taken?
The parm for "ConflictResolution" seems like that should handle it, but the
options shown in the help files do not cover this.
--
Regards,
John
.
- Follow-Ups:
- Re: SaveAs defaults...
- From: Tom Ogilvy
- Re: SaveAs defaults...
- Prev by Date: Drawing lines to cells with VBA
- Next by Date: Re: Error 13
- Previous by thread: Drawing lines to cells with VBA
- Next by thread: Re: SaveAs defaults...
- Index(es):
Relevant Pages
|