Shape.ChangePicture method (Visio)

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

Syntax

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

Remarks

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

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.