Returns the status of the object in an OLE container control.
Syntax
object.OLEType
The object is an object expression that evaluates to an object in the Applies To list.
Return Values
The OLEType property returns the following values:
Constant | Value | Description |
vbOLELinked | 0 | Linked. The OLE container control contains a linked object. All the object's data is managed by the application that created it. When the object is saved using the SaveToFile method, only link information such as SourceDoc, SourceItem, and so on is saved in the specified file by your Visual Basic application. |
vbOLEEmbedded | 1 | Embedded. The OLE container control contains an embedded object. All the object's data is managed within the Visual Basic application. When the object is saved using the SaveToFile method, all data associated with the object is saved in the specified file. |
vbOLENone | 3 | None. The OLE container control doesn't contain an object. |
Remarks
Use this property to determine if the OLE container control contains an object or to determine the type of object the OLE container control contains.
Use the AppIsRunning property to determine if the application that created the object is running.
When creating an object, use the OLETypeAllowed property to determine the type of object that can be created.