XlEnableCancelKey XlEnableCancelKey XlEnableCancelKey Enum

Definition

Specifies how Microsoft Excel handles CTRL+BREAK (or ESC or COMMAND+PERIOD) user interruptions to the running procedure.

public enum class XlEnableCancelKey
public enum XlEnableCancelKey
Public Enum XlEnableCancelKey
Inheritance
XlEnableCancelKeyXlEnableCancelKeyXlEnableCancelKey

Fields

xlDisabled xlDisabled xlDisabled 0

Cancel key trapping is completely disabled.

xlErrorHandler xlErrorHandler xlErrorHandler 2

The interrupt is sent to the running procedure as an error, trappable by an error handler set up with an On Error GoTo statement. The trappable error code is 18.

xlInterrupt xlInterrupt xlInterrupt 1

The current procedure is interrupted, and the user can debug or end the procedure.

Applies to