DisplayAsIcon Property
Applies To
OLEFormat object.
Description
True if the specified object is displayed as an icon. Read/write Boolean.
See Also
IconIndex property, IconLabel property, IconName property, IconPath property.
Example
This example displays a message box containing the name of each floating shape that's displayed as an icon on the active document.
For Each s In ActiveDocument.Shapes
If s.OLEFormat.DisplayAsIcon Then
MsgBox s.Name & " is displayed as an icon."
End If
Next s
This example inserts a Microsoft Excel worksheet as a linked OLE object on the active document and then changes the display of the object to an icon.
Set myObj = ActiveDocument.Shapes.AddOLEObject _
(FileName:="C:\Program Files\Microsoft Office\Office\Examples\Samples.xls", _
LinkToFile:=True)
myObj.OLEFormat.DisplayAsIcon = True