Share via


ShapeRange.OLEFormat Property

Returns an OLEFormat object that contains OLE formatting properties for the specified shape. Applies to Shape or ShapeRange objects that represent OLE objects. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property OLEFormat As OLEFormat
    Get
'Usage
Dim instance As ShapeRange
Dim value As OLEFormat

value = instance.OLEFormat
OLEFormat OLEFormat { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.OLEFormat
OLEFormat

Examples

This example loops through all the objects on all the slides in the active presentation and sets all linked Microsoft Word documents to be updated manually.

For Each sld In ActivePresentation.Slides

    For Each sh In sld.Shapes

        If sh.Type = msoLinkedOLEObject Then

            If sh.OLEFormat.ProgID = "Word.Document" Then

                sh.LinkFormat.AutoUpdate = ppUpdateOptionManual

            End If

        End If

    Next

Next

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.PowerPoint Namespace