Picture related procedures in class FillFormat (PowerPoint VBA)

This page presents procedures from class FillFormat related to the theme Picture: PictureEffects and UserPicture


Returns an object that represents the picture or texture fill for the specified fill format.

A picture or texture fill can be specified in the formatting for various elements (shapes) in a chart. For example, you can use the Format Data Series dialog box to format the columns in a Column chart to a picture or texture fill. In this case, the PictureEffects property returns a PictureEffects collection that corresponds to the settings associated with the Picture or texture fill option in the Fill category of the Format Data Series dialog box.

Dim pesPictureEffects As Office.PictureEffects
Set pesPictureEffects = ActiveWindow.RangeFromPoint.Fill.PictureEffects


Fills the specified shape with one large image.

If you want to fill the shape with small tiles of an image, use the UserTextured method.

Syntax : expression.UserPicture (PictureFile)

PictureFile: The name of the picture file.

Dim strPictureFile As String: strPictureFile = "c:\windows\tiles.bmp" 
ActivePresentation.Slides(1).Shapes(1).Fill.UserPicture PictureFile:=strPictureFile