Table of contents
TOC
Collapse the table of content
Expand the table of content

ShapeRange.MediaType Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns the OLE media type. Read-only.

Syntax

expression. MediaType

expression A variable that represents a ShapeRange object.

Return Value

PpMediaType

Remarks

The value of the MediaType property can be one of these PpMediaType constants.

|| |:-----| |ppMediaTypeMixed| |ppMediaTypeMovie| |ppMediaTypeOther| |ppMediaTypeSound|

Example

This example sets all native sound objects on slide one in the active presentation to loop until manually stopped during a slide show.

For Each so In ActivePresentation.Slides(1).Shapes

    If so.Type = msoMedia Then

        If so.MediaType = ppMediaTypeSound Then

            so.AnimationSettings.PlaySettings.LoopUntilStopped = True

        End If

    End If

Next

See also

Concepts

ShapeRange Object

© 2018 Microsoft