ChangeFileOpenDirectory Method

       

Sets the folder in which Microsoft Publisher searches for documents. The specified folder's contents are listed the next time the Open Publication dialog box (File menu) is displayed.

expression.ChangeFileOpenDirectory(Dir)

expression   Required. An expression that returns one of the objects in the Applies To list.

Dir  Required String. The directory path.

Remarks

Publisher searches the specified folder for documents until the user changes the folder in the Open Publication dialog box or the current Publisher session ends. Use the PathForPublications property of the Options object to change the default folder for documents in every Publisher session.

Example

This example changes the folder in which Publisher searches for documents. This example assumes that the specified directory exists.

Sub ChangeOpenPath()
    ChangeFileOpenDirectory Dir:="C:\Documents"
End Sub