Allows the user to activate an object by double-clicking the OLE control, or by giving the OLE control the focus.
[form.]ole.AutoActivate = [setting ]
The AutoActivate property settings are:
0 Manual. The OLE object is not automatically activated. You can activate an object programmatically by setting Action = 7 (OLE_ACTIVATE).
1 Focus. If the OLE control contains an object, the application that provided the object will be activated when the OLE control gets the focus.
2 (Default) Double-Click. If the OLE control contains an object, the application that provided the object will be activated when the user double-clicks the OLE control or presses Enter when the control has the focus.
You can determine if the OLE control contains an object by querying the OleType property.
Some objects can be activated from within the OLE control. When such an object is activated, the user can edit the object (or perform some other action) from inside the boundaries of the OLE control. This feature is called In-Place Activation. If an object supports In-Place Activation, you can set AutoActivate to 1 (Focus) to activate an object when the OLE control gets the focus.
Note When AutoActivate is set to 2 (Double-Click), the DblClick event does not occur when the user double-clicks an OLE control.
Chapter 22, "Object Linking and Embedding (OLE)"