LeaveCell

Occurs immediately before the currently active cell changes to a different cell.

Syntax

Private Sub object_LeaveCell ()

The object placeholder represents an object expression that evaluates to an object.

Remarks

This event is useful for validating a cell's contents. The LeaveCell event is not triggered when the focus moves to a different control.