_Application.ChangeFileOpenDirectory(String) Method

Definition

Sets the folder in which Microsoft Word searches for documents.

C#
public void ChangeFileOpenDirectory (string Path);

Parameters

Path
String

Required String. The path to the folder in which Word searches for documents.

Remarks

The specified folder's contents are listed the next time the Open dialog box (File menu) is displayed.

Word searches the specified folder for documents until the user changes the folder in the Open dialog box or the current Word session ends. Use the DefaultFilePath[WdDefaultFilePath] property to change the default folder for documents in every Word session.

Applies to

Product Versions
Word primary interop assembly Latest