Options.PathForPictures property (Publisher)
Returns a String that represents the default path for picture files. Read.
Syntax
expression.PathForPictures
expression A variable that represents an 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.
Sub InsertNewPicture()
Dim strPicPath As String
strPicPath = Options.PathForPictures
ActiveDocument.Pages(1).Shapes.AddPicture FileName:=strPicPath _
& "FileName", LinktoFile:=msoFalse, _
SaveWithDocument:=msoTrue, Left:=50, Top:=50, Height:=200
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.