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)

Usage

Dim Path As String
Dim _Global1 As _Global
_Global1.ChangeFileOpenDirectory(Path)

Syntax

Sub ChangeFileOpenDirectory( _
    <InAttribute()> ByVal Path As String _
)
void ChangeFileOpenDirectory(
    [In] string Path
);
public: Void ChangeFileOpenDirectory(
    String^ Path
);
public void ChangeFileOpenDirectory(
    /*in*/System.String Path
);
function ChangeFileOpenDirectory(
     Path : String
);

Parameters

  • Path
    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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

_Global Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

_Global Members