+ Reply to Thread
Results 1 to 3 of 3

Unprotect & Protect All workbook sheets password protection / existing code help needed

  1. #1
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Smile Unprotect & Protect All workbook sheets password protection / existing code help needed

    Dear All,

    Can you please help me with the below code?
    I have searched but I don't know how to apply what i've found to my code.
    I am very new to VB.

    Thank you in advance!
    Please Login or Register  to view this content.
    The code is looping through selected worksheets, hiding empty rows, it is assigned to a button. The button changes caption upon activation.
    Since all the worksheets are password protected, currently the code does not work. I need the button to also unprotect all worksheets , run the code and then protect all the sheets with the same password.
    Last edited by annazet; 04-20-2017 at 03:05 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Unprotect & Protect All workbook sheets password protection / existing code help neede

    Try this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Re: Unprotect & Protect All workbook sheets password protection / existing code help neede

    Worked! Thank you!!!

+ 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. Protect unprotect sheets with password and sort
    By Zagra147 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-14-2014, 07:31 AM
  2. [SOLVED] Unprotect VBA - Run Code - Protect again (password is known)
    By Bishonen in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-10-2012, 09:35 AM
  3. [SOLVED] Password protect and unprotect all sheets EXCEPT two named sheets
    By Ducatisto in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2012, 05:43 AM
  4. FIXED - MAcro to protect/unprotect sheets based on password in cell
    By pmcook1979 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-10-2012, 04:28 AM
  5. Excel 2007 : unprotect and protect code for existing macro
    By Martin Chamberlin in forum Excel General
    Replies: 3
    Last Post: 11-25-2011, 03:45 PM
  6. Macros to protect and unprotect sheets (Without a password)
    By David_S_Walker in forum Excel General
    Replies: 6
    Last Post: 03-30-2010, 06:44 AM
  7. Please help!!! Using code to password-protect and unprotect...
    By Hawk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-09-2005, 06:05 PM

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