Export (0) Print
Expand All

OLEFormat Object

Shapes (Shape)
Aa201189.parchild(en-us,office.10).gifOLEFormat
Aa201189.space(en-us,office.10).gifAa201189.parchild(en-us,office.10).gifObjectVerbs

Contains properties and methods that apply to OLE objects. The LinkFormat object contains properties and methods that apply to linked OLE objects only. The PictureFormat object contains properties and methods that apply to pictures and OLE objects.

Using the OLEFormat Object

Use the OLEFormat property to return an OLEFormat object. The following example loops through all the shapes on all the slides in the active presentation and sets all linked Microsoft Excel worksheets 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 = "Excel.Sheet" Then
                sh.LinkFormat.AutoUpdate = ppUpdateOptionManual
            End If
        End If
    Next
Next
Show:
© 2014 Microsoft