Table of contents
Collapse the table of content
Expand the table of content

Options.PathForPictures Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

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


expression. PathForPictures

_expression_A variable that represents a Options object.

Return Value



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
© 2018 Microsoft