Bound Object Frame Control, Chart Control, Unbound Object Frame Control.
You can use the OLETypeAllowed property to specify the type of OLE object a control can contain.
The OLETypeAllowed property uses the following settings.
Setting |
Description |
Visual Basic |
Linked |
The control can contain only a linked object. |
0 |
Embedded |
The control can contain only an embedded object. |
1 |
Either |
(Default) The control can contain either a linked or an embedded object. |
2 |
You can set the OLETypeAllowed property using the property sheet, a macro, or Visual Basic. You can also set this property in a control’s default control style.
Note For unbound object frames, you can’t change the OLETypeAllowed setting after an object is created. For bound object frames, you can change the setting after the object is created. Changing the OLETypeAllowed property setting only affects new objects that you add to the control.
To determine the type of OLE object a control already contains, you can use the OLEType property.
Action Property, OLEType Property.
See the Action property example.