ProgID Property

Applies To

OLEFormat object.

Description

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

Remarks

The ProgID and ClassType properties will (by default) return the same string. However, you can change the ClassType property for DDE links.

See Also

ClassType property.

Example

This example loops through all the floating shapes in the active document and sets all linked Microsoft Excel worksheets to be updated automatically.

For Each s In ActiveDocument.Shapes
    If s.Type = msoLinkedOLEObject Then
        If s.OLEFormat.ProgID = "Excel.Sheet.8" Then
            s.LinkFormat.AutoUpdate = True
        End If
    End If
Next