Shapes.AddWebVideo method (Word)

Adds a new web video to the document.

Syntax

expression.AddWebVideo (EmbedCode, VideoWidth, VideoHeight, PosterFrameImage, Url, Left, Top, Width, Height, Anchor)

expression A variable that represents a Shapes object.

Parameters

Name Required/Optional Data type Description
EmbedCode Required String The HTML code to embed.
VideoWidth Required Variant An integer that represents the width of the web video in pixels.
VideoHeight Required Variant An integer that represents the height of the web video in pixels.
PosterFrameImage Optional Variant A string that points to the file to use as the poster frame for the web video.
Url Optional Variant A string that contains the URL to the web video.
Left Optional Variant The position, measured in points, of the left edge of the poster frame from the edge of the document.
Top Optional Variant The position, measured in points, of the top edge of the poster frame from the edge of the document.
Width Optional Variant The width, measured in points, of the poster frame in the document.
Height Optional Variant The height, measured in points, of the poster frame in the document.
Anchor Optional Variant A Range object that represents the text to which the web video is bound. If Anchor is specified, the anchor is positioned at the beginning of the first paragraph in the anchoring range. If this argument is omitted, the anchoring range is selected automatically and the video is positioned relative to the top and left edges of the page.

Return value

SHAPE

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.