Share via


XlEnableCancelKey Enumeration

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Public Enumeration XlEnableCancelKey
'Usage
Dim instance As XlEnableCancelKey
public enum XlEnableCancelKey

Members

Member name Description
xlDisabled Cancel key trapping is completely disabled.
xlErrorHandler 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 The current procedure is interrupted, and the user can debug or end the procedure.

See Also

Reference

Microsoft.Office.Interop.Excel Namespace