Office Settings & Configuration

Get and Reset the Default Word Save Path with VBA

John WilsonJohn Wilson Nov 18, 2026 869 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Open the Immediate window

In Word, press Alt+F11 to open the VBA editor, then select View > Immediate Window or press Ctrl+G.

2
Read the current path

In the Immediate window, enter ?Application.Options.DefaultFilePath(wdDocumentsPath) and press Enter. Copy the returned path before saving to another folder.

3
Restore the recorded path

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.

4
Check the setting

Run ?Application.Options.DefaultFilePath(wdDocumentsPath) again in the Immediate window to confirm that Word returns the recorded path.

Read and restore Word’s default save path with VBA
Using the path in a macro: Store the returned value in a String variable before the save operation and assign it back afterward. If you append a file name to the path, add a backslash only when the path does not already end with one.
Free Microsoft Office alternative

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.

Choose a folder when saving documents in WPS WriterOpen and save Microsoft Word DOC and DOCX filesWork in a familiar, easy-to-use interfaceUse a free, lightweight Office alternative
microsoft office alternative - wps office

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.