Share via


Options.PathForPictures Property

Publisher Developer Reference

Returns a String that represents the default path for picture files. Read.

Syntax

expression.PathForPictures

expression   A variable that represents a Options object.

Return Value
String

Example

This example places the default path for picture files in a string and then uses the path string to add the specified file to the active publication. (Note that Filename must be replaced with a valid file name for this example to work.)

Visual Basic for Applications
  Sub InsertNewPicture()
    Dim strPicPath As String
strPicPath = Options.<strong>PathForPictures</strong>

ActiveDocument.Pages(1).Shapes.AddPicture FileName:=strPicPath _
    &amp; "<em>Filename</em>", LinktoFile:=msoFalse, _
    SaveWithDocument:=msoTrue, Left:=50, Top:=50, Height:=200

End Sub

See Also