AutoActivate Property

Applies To

Bound Object Frame Control, Chart Control, Unbound Object Frame Control.

Description

You can use the AutoActivate property to specify how the user can activate an OLE object.

Setting

The AutoActivate property uses the following settings.

Setting Description Visual Basic
Manual The OLE object isn’t activated when it receives the focus or when the user double-clicks the control. You can activate an OLE object only using Visual Basic by setting the control’s Action property to acOLEActivate. 0
GetFocus (For unbound object frame and chart controls only) If the control contains an OLE object, the application that supplied the object is activated when the control receives the focus. 1
Double-Click (Default) If the control contains an OLE object, the application that supplied the object is activated when the user double-clicks the control or presses CTRL+ENTER when the control has the focus. 2


You can set this property using the property sheet, a macro, or Visual Basic. You can also set this property in a control’s default control style.

The AutoActivate property can be set only in Design view.

Remarks

Some OLE objects can be activated from within the control. When such an object is activated, the object can be edited (or some other operation can be performed) from inside the boundaries of the control. This feature is called in-place activation. If an object supports in-place activation, see the documentation for the application that created the object for information about using this feature.

Using Visual Basic, you can determine if a control contains an object by checking the setting of its OLEType property.

Note If you set a control’s AutoActivate property to Double-Click and specify a DblClick event for the control, the DblClick event occurs before the object is activated.

See Also

Action Property, OLEType Property.