+ Reply to Thread
Results 1 to 4 of 4

Pop up window when closing excel

  1. #1
    Registered User
    Join Date
    11-07-2007
    Posts
    20

    Pop up window when closing excel

    Can someone tell me if it is possible to have a window pop up reminding users if the have protected a worksheet when they have unprotected it. It is very annoying that people unprotect a sheet and forget to prtect it again. I am using Office 2007.

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Pop up window when closing excel

    you can write a statement in your Workbook_Open event to protect all worksheets, so the program will always open with all sheets protected OR you can write similar statements in Workbook_BeforeClose event.

    modytrane

  3. #3
    Registered User
    Join Date
    11-07-2007
    Posts
    20

    Re: Pop up window when closing excel

    Sorry, but how do I do that?

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Pop up window when closing excel

    Open the attached file.
    All three sheets are protected with password: xyz.
    If you unprotect the sheets and save the file and then re-open it, you'll find that the sheets will be protected.
    To see the macro, right click on one of the tabs below [sheet1 or sheet2 etc.]. Select view code.
    When VBA explorer opens, Doubleclick on ThisWorkbook. You'll see the code.
    In the code, you can change the name of the worksheet or change the password.
    hope this helps.
    modytrane
    Attached Files Attached Files

+ 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