Get and Reset the Default Word Save Path with VBA
Question details
Retrieve Word’s current default document save path and restore it after saving a document elsewhere.
- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A Word template changes the suggested file name or save location for new documents, and the user wants to return to the previous default location.
- Observed behavior
- Saving to another location can change the value returned by Word’s default document path setting.
Open Word and make sure you can access the VBA editor with Alt+F11. Record the current default path before saving elsewhere, because the setting can change.
Read and restore Word’s default save path with VBA
Use Word’s DefaultFilePath property to capture the current document path and restore it later.
The wdDocumentsPath value represents Word’s current default document location, not necessarily the operating system’s original Documents folder.
In Word, press Alt+F11 to open the VBA editor, then select View > Immediate Window or press Ctrl+G.
In the Immediate window, enter ?Application.Options.DefaultFilePath(wdDocumentsPath) and press Enter. Copy the returned path before saving to another folder.
After saving elsewhere, enter Application.Options.DefaultFilePath(wdDocumentsPath) = "C:\Your\Recorded\Folder" in the Immediate window. Replace the example with the path you copied and press Enter.
Run ?Application.Options.DefaultFilePath(wdDocumentsPath) again in the Immediate window to confirm that Word returns the recorded path.

Change the default document location in Word Options
Use Word’s settings when you prefer to select a default save folder without VBA.
Manage document saves with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and saving documents. Its Microsoft Word format compatibility makes moving everyday document work to WPS Writer straightforward; it does not reset Microsoft Word’s VBA settings.

Frequently Asked Questions
How do I find Word’s current default save path with VBA?
Open the VBA Immediate window with Alt+F11, then Ctrl+G. Enter ?Application.Options.DefaultFilePath(wdDocumentsPath) and press Enter.
Does wdDocumentsPath always return the Windows Documents folder?
No. It returns Word’s current default document path, which may have been changed by a save operation, a setting, or VBA code.
How can I restore the path automatically in a macro?
Before saving, store Application.Options.DefaultFilePath(wdDocumentsPath) in a String variable. Afterward, assign that variable back to the same property, including in your error-handling cleanup if the save fails.
Do I need a trailing backslash when adding a file name?
Check whether the retrieved path already ends in a backslash. Add one only if needed before appending the file name.
Can I change the default save folder without VBA?
Yes. In Word, open File > Options > Save, update Default local file location, and select OK.




