PathForPublications Property

Microsoft Publisher Visual Basic

expression.PathForPublications

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

Remarks

The new setting takes effect immediately.

Example

This example sets the default folder for Publisher documents. (Note that PathToFolder must be replaced with a valid folder path for this example to work.)

Sub ChangeDefaultPath()
    Options.PathForPublications = "PathToFolder"
End Sub
		

This example returns the current default path for publications (corresponds to the default path setting on the General tab in the Options dialog box, Tools menu).

Sub PubPath()
    Dim strPubPath
    strPubPath = Options.PathForPublications
    MsgBox strPubPath
End Sub