Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.39 KB

PowerPoint.FillFormat.UserPicture.md

File metadata and controls

55 lines (34 loc) · 1.39 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
FillFormat.UserPicture method (PowerPoint)
vbapp10.chm552009
vbapp10.chm552009
PowerPoint.FillFormat.UserPicture
87f28942-a5d2-7e27-7eee-5181d112d6d2
06/08/2017
medium

FillFormat.UserPicture method (PowerPoint)

Fills the specified shape with one large image.

Syntax

expression.UserPicture (PictureFile)

expression A variable that represents a FillFormat object.

Parameters

Name Required/Optional Data type Description
PictureFile Required String The name of the picture file.

Remarks

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

Example

This example adds two rectangles to myDocument. The rectangle on the left is filled with one large image of the picture in Tiles.bmp; the rectangle on the right is filled with many small tiles of the picture in Tiles.bmp.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes
    .AddShape(msoShapeRectangle, 0, 0, 200, 100).Fill _
        .UserPicture "c:\windows\tiles.bmp"
    .AddShape(msoShapeRectangle, 300, 0, 200, 100).Fill _
        .UserTextured "c:\windows\tiles.bmp"
End With

[!includeSupport and feedback]