+ Reply to Thread
Results 1 to 3 of 3

Unloading a form using the ESC key

  1. #1
    Forum Contributor
    Join Date
    07-07-2005
    Location
    England
    MS-Off Ver
    Office 2019 Enterprise
    Posts
    462

    Unloading a form using the ESC key

    Hello, Is there anyway to be able to unload a form by pressing the ESC key.

    Thanks

    John

  2. #2
    Jake Marx
    Guest

    Re: Unloading a form using the ESC key

    Hi John,

    johncassell wrote:
    > Hello, Is there anyway to be able to unload a form by pressing the ESC
    > key.


    Yes. If you have an existing "Cancel" button, set its Cancel property to
    True. If you don't, you'll need to create a Cancel button and set its
    Cancel property to True. Then put some code behind its Click event that
    unloads or hides the userform.

    --
    Regards,

    Jake Marx
    MS MVP - Excel
    www.longhead.com

    [please keep replies in the newsgroup - email address unmonitored]


  3. #3
    Forum Contributor
    Join Date
    07-07-2005
    Location
    England
    MS-Off Ver
    Office 2019 Enterprise
    Posts
    462
    Cheers mate, much appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1