+ Reply to Thread
Results 1 to 2 of 2

Esc Key Closes Workbook

  1. #1
    MSweetG222
    Guest

    Esc Key Closes Workbook

    All,

    I am running a VBA program (via an add-in). The program is running with
    ScreenUpdating set to False, so I have a Progress Bar User Form displayed
    indicating program progress.

    Issue: If User hits the Esc Key - the Active Workbook closes, without
    warning, etc.

    Question #1: Is that the normal function of the Esc Key?
    Question #2: What can I do to prevent this type of action?

    Thx
    MSweetG222


  2. #2
    Tom Ogilvy
    Guest

    Re: Esc Key Closes Workbook

    If you set the cancel property of a commandbutton to True, then hitting the
    escape key will fire the click event of that button. Is there a cancel
    button on the userform that causes the same behavior. If so, and you can
    get into the Add-In, change the property to false.

    I would say that closing the workbook is not a typical function of the Esc
    key - although it might be if were on a useform used to challenge access to
    a workbook by prompting for a password.

    --
    Regards,
    Tom Ogilvy


    "MSweetG222" <[email protected]> wrote in message
    news:[email protected]...
    > All,
    >
    > I am running a VBA program (via an add-in). The program is running with
    > ScreenUpdating set to False, so I have a Progress Bar User Form displayed
    > indicating program progress.
    >
    > Issue: If User hits the Esc Key - the Active Workbook closes, without
    > warning, etc.
    >
    > Question #1: Is that the normal function of the Esc Key?
    > Question #2: What can I do to prevent this type of action?
    >
    > Thx
    > MSweetG222
    >




+ 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