Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2008

Tip: Looking for answers? Try searching our database.

SaveAs: prevent "Do you want to save the changes you made to"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michiel - 20 Mar 2008 19:13 GMT
Hi all,

I use a SaveAs in some code.

I want the SaveAs to warn me when the export file exist and is being
overwritten. So,
I want the message "A file named 'xxxx'already exists in this location. Do
you... etc"
if necessary

I do not want the message: "Do you want to save the changes you made to"

When I use: Application.DisplayAlerts = False I switch off both.

Is there a way to prevent the second message by setting a property or
something like that?

Thanks!
Doug Robbins - Word MVP - 22 Mar 2008 23:00 GMT
You should be able to determine how to do that from the code in the article
"How to save a document using a filename that gets incremented by 1 each
time if the filename already exists" at:

http://www.word.mvps.org/FAQs/MacrosVBA/SaveIncrementedFilename.htm

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Hi all,
>
[quoted text clipped - 14 lines]
>
> Thanks!

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.