Always save to last location

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to save any document to the last used location.
Does anyone know how to realize that users' wish?
 
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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top