+ Reply to Thread
Results 1 to 14 of 14

How can i unprotect a workbook and sheets that already protected?

  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    How can i unprotect a workbook and sheets that already protected?

    Hi,
    I have a workbook that is protected by password.
    Everytime I fix some problems, I have to unprotect sheets.
    This is really annoying.
    How can I unprotect sheets and workbooks while I am updating or changing?

    Thanks

  2. #2
    Registered User
    Join Date
    12-03-2011
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How can i unprotect a workbook and sheets that already protected?

    Hi Goodstart14,
    Since you have a password, open the workbook unprotect it and save it.
    Reopen the work book it will be in unprotect mode by now.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: How can i unprotect a workbook and sheets that already protected?

    record a macro doing the unprotecting the sheets 1 by 1, then record another macro protecting each 1. Then run them when needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: How can i unprotect a workbook and sheets that already protected?

    Quote Originally Posted by strongmen1969 View Post
    Hi Goodstart14,
    Since you have a password, open the workbook unprotect it and save it.
    Reopen the work book it will be in unprotect mode by now.

    Thanks.
    I did what you said and this workbook is unprotected.
    How about worksheets?
    I unprotect sheet1 then save it and reopen, but it didn't work.

    record a macro doing the unprotecting the sheets 1 by 1, then record another macro protecting each 1. Then run them when needed
    I also made macros but it protected right away.

    What should I do?

    Thanks

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: How can i unprotect a workbook and sheets that already protected?

    I also made macros but it protected right away.
    Not sure I understand? if you unprotect the WS, it will not just re-protect itself

  6. #6
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: How can i unprotect a workbook and sheets that already protected?

    When I unprotect by password, the Sheet is unprotected , then when I click any cell in the Sheet, all tabs are gray out.
    For example:
    I have to click Review tab again to unprotect, and then go to Home tab to change font, then all tabs are gray out again. I have to click Review tab again,,,,,,,,
    How can I solve this problem?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: How can i unprotect a workbook and sheets that already protected?

    upload a sample please

  8. #8
    Registered User
    Join Date
    12-03-2011
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How can i unprotect a workbook and sheets that already protected?

    Hi, If i not wrong the ws may has a VBA written, if you think you don't need it maybe you can delete it, and do remember VBA will gone forever.

  9. #9
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: How can i unprotect a workbook and sheets that already protected?

    Quote Originally Posted by strongmen1969 View Post
    Hi, If i not wrong the ws may has a VBA written, if you think you don't need it maybe you can delete it, and do remember VBA will gone forever.

    Yes, my worksheets have VBA, that's why I protected.
    Do I have to comment out every password in my VBA?

  10. #10
    Registered User
    Join Date
    12-03-2011
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How can i unprotect a workbook and sheets that already protected?

    maybe you need to upload a sample so that we can more clearly what you means.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: How can i unprotect a workbook and sheets that already protected?

    hmm well if you have VBA applying your protection, then unprotecting manually will have no affect. Thats a small detail that you should have shared upfront

  12. #12
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Re: How can i unprotect a workbook and sheets that already protected?

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: How can i unprotect a workbook and sheets that already protected?

    Quote Originally Posted by FDibbins View Post
    Thats a small detail that you should have shared upfront
    I am so sorry.,I didn't explain well, but I learned. Thank you for your patient.

  14. #14
    Forum Contributor
    Join Date
    11-21-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: How can i unprotect a workbook and sheets that already protected?

    Quote Originally Posted by coreytroy View Post
    Please Login or Register  to view this content.
    Thanks,
    Sorry, butI am beginner inVBA. How can I use this?
    Thanks in advance.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Unprotect sheets in workbook deactivate event
    By TonyQ in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-05-2013, 12:39 AM
  2. [SOLVED] Ran Macro that Password Protected Sheets, Now won't Unprotect
    By pjdumont in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2013, 02:17 AM
  3. Replies: 6
    Last Post: 04-26-2012, 02:04 PM
  4. Macros for Protect/Unprotect all sheets in a workbook
    By Paul Sheppard in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2005, 10:36 AM
  5. Macros for Protect/Unprotect all sheets in a workbook
    By Paul Sheppard in forum Excel General
    Replies: 2
    Last Post: 08-04-2005, 11:30 AM

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