PjEnableCancelKey enumeration (Project)

Contains constants that specify how to handle the CTRL+BREAK key combination.

Name Value Description
pjDisabled 0 CTRL+BREAK is ignored.
pjErrorHandler 2 Sends the interrupt to the macro as a trappable error. The error code is 18.
pjInterrupt 1 CTRL+BREAK interrupts the macro.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.