VBA - Use Escape key to close form
-
- 3StarLounger
- Posts: 293
- Joined: 26 Mar 2010, 10:53
VBA - Use Escape key to close form
I'm making a multi-page form for CorelDraw using vba. I have a close button on each of the three pages but I'd like to be able to close the form using the escape key. I set the values of the close button on page 1 to cancel: true and Default: true. The escape key works for page 1 but not for the other pages. How can I use get the escape key to close a multi-page user form? Thanks.
-
- 3StarLounger
- Posts: 293
- Joined: 26 Mar 2010, 10:53
Re: VBA - Use Escape key to close form
Found it! - I moved the default cancel button onto the userform so that it was hidden under the multi-pages. It now works for ever page.