OlkCommandButton Events (Outlook)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

This object has the following events:

Name

Description

AfterUpdate

Occurs after the data in the control has been changed through the user interface.

BeforeUpdate

Occurs when the data in the control is changed through the user interface and is about to be saved to the item.

Click

Occurs when the user clicks inside the control.

DoubleClick

Occurs when the user double-clicks inside the control.

Enter

Occurs before the control actually receives the focus from a control on the same form.

Exit

Occurs just after the focus passes from this control to another control on the same form.

KeyDown

Occurs when a user presses a key.

KeyPress

Occurs when the user presses an ANSI key.

KeyUp

Occurs when the user releases a key.

MouseDown

Occurs when the user presses a mouse button on the control.

MouseMove

Occurs after a mouse movement has been registered over the control.

MouseUp

Occurs after the user releases a mouse button that has been pressed on the control.

Show: