Always save to last location

S

Stefanie

I want to save any document to the last used location.
Does anyone know how to realize that users' wish?
 
G

Graham Mayor

Word always opens to the folder saved in tools > options > file locations >
documents.

If you open a document from or save a document to a different location, Word
will keep that location in focus until you change it to something else until
Word is closed then re-opened.

In addition, Word will save documents to the folder you opened them from.

If you wanted to make the default document location the same as the last
folder you saved to then you could do this by intercepting the Word commands
used to save the documents and adding the code to change the default
location -

Sub FileSaveAs()
Dialogs(wdDialogFileSaveAs).Show
MyPath = ActiveDocument.Path
Options.DefaultFilePath(Path:=wdDocumentsPath) = MyPath
ActiveWindow.Caption = ActiveDocument.FullName
End Sub

Sub FileSave()
ActiveDocument.Save
MyPath = ActiveDocument.Path
Options.DefaultFilePath(Path:=wdDocumentsPath) = MyPath
ActiveWindow.Caption = ActiveDocument.FullName
End Sub

Frankly I am not too enamoured with this idea. You would be much better
using links to your folders - see
http://www.gmayor.com/customize_the_word_places_bar.htm


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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