OLEFormat.progID property (Excel)

Returns the programmatic identifiers for the object. Read-only String.

Syntax

expression.progID

expression A variable that represents an OLEFormat object.

Example

This example creates a list of the programmatic identifiers for the OLE objects on worksheet one.

rw = 0 
For Each o in Worksheets(1).OLEObjects 
 With Worksheets(2) 
 rw = rw + 1 
 .cells(rw, 1).Value = o.ProgId 
 End With 
Next

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.