Shape.ChangePicture Method (Visio)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Replaces the specified shape?s current picture with a new picture.

expression .ChangePicture(FileName,ChangePictureFlags)

expression A variable that represents a Shape object.

Parameters

Name

Required/Optional

Data type

Description

FileName

Required

STRING

Specifies the full path of the replacement picture.

ChangePictureFlags

Optional

INT32

Reserved for future implementation. Has no effect.

Return value

DOUBLE

The DOUBLE returned represents the ratio of the picture?s width to its height.

Show: