+ Reply to Thread
Results 1 to 4 of 4

Disable 'Exit Excel' button in Excel 2007

Hybrid View

  1. #1
    Registered User
    Join Date
    07-25-2008
    Location
    Michigan
    Posts
    5

    Disable 'Exit Excel' button in Excel 2007

    Does anyone know a macro, registry entry or even add-in that will disable the 'Exit Excel' button under the Office Button in Excel 2007?

    Thanks in advance for your help.

  2. #2
    Registered User
    Join Date
    07-25-2008
    Location
    Michigan
    Posts
    5
    ^^^^^^^^^^^^^^^^^^

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
        Cancel = True
    End Sub
    I'd be careful how I used this -- you'll have people coming after you in the night with pitchforks.

  4. #4
    Registered User
    Join Date
    07-25-2008
    Location
    Michigan
    Posts
    5

    Wink

    Thankgs shg, however that worked a bit too well. I'm unable to close the document at all. I want users to be able to use the 'X' to close, or even ALT+F4, but not the 'Exit Excel' button.

    Thanks again.

+ 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