Shapes.AddMediaObjectFromEmbedTag (PowerPoint)

Adds a media object from an embedded tag to a Shapes object.

AddMediaObjectFromEmbedTag (EmbedTag, Left, Top, Width, Height)


Dim strEmbedTag As String: strEmbedTag = 
Dim shpAddMediaObjectFromEmbedTag As Shape
Set shpAddMediaObjectFromEmbedTag = ActivePresentation.SlideMaster.Shapes.AddMediaObjectFromEmbedTag(EmbedTag:=strEmbedTag)

Arguments

The following argument is required

EmbedTag (String) - The embed tag.

Optional arguments

The following arguments are optional

Left (Single) - The distance, in points, from the left edge of the slide to the left edge of the media object.

Top (Single) - The distance, in points, from the top edge of the slide to the top edge of the media object.

Width (Single) - The width, in points, of the media object.

Height (Single) - The height, in points, of the media object.