+ Reply to Thread
Results 1 to 4 of 4

Disable 'Exit Excel' button in Excel 2007

Hybrid View

Testing213 Disable 'Exit Excel' button... 07-25-2008, 09:32 AM
Testing213 ^^^^^^^^^^^^^^^^^^ 07-25-2008, 11:57 AM
shg Private Sub... 07-25-2008, 12:04 PM
Testing213 Thankgs shg, however that... 07-25-2008, 01:30 PM
  1. #1
    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.

  2. #2
    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