Using the CancelError Property

Using the CancelError Property

You said there’s an example in the VB help file on use of theCancelError = true property. Where is it? In my app, I can get VB to generatethe message, but I can’t do anything with it. Thanks.

The CancelError property is a property of the common dialog. Whenever it is set, and the user presses the Cancel button, you will get a trappable error (#32765, I think — the constant is CDERR_CANCEL, located in CONSTANT.TXT). Set up an error handler in the routine with On Error Goto


Share the Post: