InlineShapes.AddWebVideo method (Word)

Adds a new web video to the document.

Syntax

expression.AddWebVideo (EmbedCode, VideoWidth, VideoHeight, PosterFrameImage, Url, Range)

expression A variable that represents an InlineShapes object.

Parameters

Name Required/Optional Data type Description
EmbedCode Required String The embed code for the video.
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 The URL to the video.
Range Optional Variant The range at which to insert the web video. If Range is omitted, the current selection is used.

Return value

INLINESHAPE

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.