Share via


_Global.ChangeFileOpenDirectory Method

Sets the folder in which Microsoft Word searches for documents.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub ChangeFileOpenDirectory ( _
    Path As String _
)
'Usage
Dim instance As _Global
Dim Path As String

instance.ChangeFileOpenDirectory(Path)
void ChangeFileOpenDirectory(
    string Path
)

Parameters

  • Path
    Type: System.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 property to change the default folder for documents in every Word session.

See Also

Reference

_Global Interface

_Global Members

Microsoft.Office.Interop.Word Namespace