IconLabel Property

Applies To

OLEFormat object.

Description

Returns or sets the text displayed below the icon for an OLE object. Read/write String.

See Also

DisplayAsIcon property, IconIndex property, IconName property, IconPath property.

Example

This example changes the text below the icon for the first shape in the selection.

If Selection.ShapeRange.Count >= 1 Then
    Set myOLEF = Selection.ShapeRange(1).OLEFormat
    With myOLEF
        .DisplayAsIcon = True
        .IconLabel = "My Icon"
    End With
End If