SaveAs Method

J

Joe User

What is the proper syntax for overiding a file with the
same filename in the same path for the SaveAs Method?
 
C

Cindy M -WordMVP-

Hi Joe,
What is the proper syntax for overiding a file with the
same filename in the same path for the SaveAs Method?
All I've ever had to do is assign the filename? If that's
not working for you, HOW is it not working? And in what
software version? (Note: I'm assuming we're talking about
Word?)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
J

jaf

Ji Joe,
application.displayalerts=false
activeworkbook.saveas blabla
application.displayalerts=true


--
John
johnf 202 at hotmail dot com


| What is the proper syntax for overiding a file with the
| same filename in the same path for the SaveAs Method?
 
M

Mike Walker

Hi Joe

You don't say which application and exactly what you are trying to do so I
will assume the following;

a) Word is the application
b) You have a document open that you wish to saveas an exiting file that
exists on the storage without prompting.

This is quite simple

Activedocument.saveas "filename"

It will automatically overwrite any previous file :( - no error thrown in
Word 2003 if you want to work out the current directory of the open document
you can get that from

Activedocument.Path

Hope this helps

Rgds

Mike Walker
(Reply via NG)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top