Share via


OLEFormat.ProgID Property

Returns the programmatic identifier (ProgID) for the specified OLE object. Read-only.

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

Syntax

'Declaration
ReadOnly Property ProgID As String
    Get
'Usage
Dim instance As OLEFormat
Dim value As String

value = instance.ProgID
string ProgID { get; }

Property Value

Type: System.String
String

Examples

This example loops through all the objects on all the slides in the active presentation and sets all linked Microsoft Office 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

See Also

Reference

OLEFormat Interface

OLEFormat Members

Microsoft.Office.Interop.PowerPoint Namespace