Application.EnableCancelKey Property (Word)
Published: July 16, 2012
Returns or sets the way that Word handles CTRL+BREAK user interruptions. Read/write WdEnableCancelKey.
expression Required. A variable that represents an Application object.
Use this property very carefully. If you use wdCancelDisabled, there is no way to interrupt a runaway loop or other non – self-terminating code. Also, the EnableCancelKey property is not reset to wdCancelInterrupt when your code stops running; unless you explicitly reset its value, it will remain set to wdCancelDisabled for the duration of the Word session.