+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 VBA: Determine if worksheet was unprotected

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    108

    Excel 2007 VBA: Determine if worksheet was unprotected

    Hi -

    Is there a way to determine if a protected worksheet was unprotected?

    Thank you

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Excel 2007 VBA: Determine if worksheet was unprotected

    How would they unprotect if they could? Do they know the password?

    I'm asking this because I believe there could be different ways to answer.
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    108

    Re: Excel 2007 VBA: Determine if worksheet was unprotected

    Lets just say, they have the means to know the password. I want to have a hidden sheet that tracks if a sheet was unprotected then protected... they can't change the password because I have a vba(Password Protected) that runs for that template that let them edit a cell and locks it after editing.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Excel 2007 VBA: Determine if worksheet was unprotected

    A hidden sheet capturing the fact whether a sheet is unprotected and then reprotected is probably the way to do, but not sure you can capture this attribute through using the ribbon.

    At least for me, the way to do it would be through an inputbox. Doing it this way will allow you to have some value written to the hidden sheet when the code is fired.

+ 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