Table of contents
TOC
Collapse the table of content
Expand the table of content

ObjectFrame.AutoActivate Property (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

You can use the AutoActivate property to specify how the user can activate an OLE object. Read/write Integer.

Syntax

expression. AutoActivate

expression A variable that represents an ObjectFrame object.

Remarks

The AutoActivate property uses the following settings.

SettingConstantDescription
ManualacOLEActivateManual (0)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 by using Visual Basic to set the control's Action property to acOLEActivate.
GetFocusacOLEActivateGetFocus (1)(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.
Double-ClickacOLEActivateDoubleClick (2)(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.

The AutoActivate property can be set only in Design view.

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 was used to create the object for information about using this feature.

With 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

Concepts

ObjectFrame Object

© 2018 Microsoft