+ Reply to Thread
Results 1 to 7 of 7

Protect Multiple Sheets

  1. #1
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Protect Multiple Sheets

    Hi!

    I saw this code in picture analytic site. It is working fine but there two things I noticed with it:
    1. The Password is visible when entered in the textbox
    2. There's no way to control what the users can and cannot do with the worksheet such allowing them to:
    a. Format cells
    b. Format columns
    c. Format rows.

    Is there anyway those mentioned above can be achieved?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,757

    Re: Protect Multiple Sheets

    We can't answer questions about code without seeing the code. Either attach your file (best), or paste code into a post.

    If you paste code please use CODE tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,331

    Re: Protect Multiple Sheets

    Hi Simply_Me

    To answer your question.....Yes anything can be achieved here.....
    1. The Password is visible when entered in the textbox
    In the properties of the textbox, enter * in the passwordchar
    2. There's no way to control what the users can and cannot do with the worksheet such allowing them to:
    a. Format cells
    b. Format columns
    c. Format rows.
    I've suggested this code of lenze's a few times today. It allows you to set ranges so that the user cannot edit, format etc
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Protect Multiple Sheets

    Quote Originally Posted by 6StringJazzer View Post
    We can't answer questions about code without seeing the code. Either attach your file (best), or paste code into a post.
    Sorry I forgot to post the code. Here it is
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Protect Multiple Sheets

    sintek, I'm sorry, I'm referring to the textbox of an InputBox()

  6. #6
    Forum Contributor
    Join Date
    07-26-2016
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    117

    Re: Protect Multiple Sheets

    I want to see this dialog before user can type the password to protect the sheets excel.GIF

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,331

    Re: Protect Multiple Sheets

    Use this code to bring up Protect Sheet dialogue box
    Please Login or Register  to view this content.

+ 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/Un-protect multiple sheets with password using VBA
    By Max_excel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-22-2013, 02:59 AM
  2. Protect Multiple sheets at once from being edited.
    By fayjohn123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-03-2013, 01:44 AM
  3. Unprotect the multiple sheets and protect them again
    By itisalikhan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-08-2012, 01:12 PM
  4. How to unprotect/protect multiple sheets at once not using the VB
    By gerard_gonzales33 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-13-2012, 02:31 AM
  5. Password Protect Multiple Sheets
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-08-2011, 02:27 AM
  6. Protect Sheet on multiple sheets
    By dellschipper in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-16-2009, 03:24 PM
  7. Protect Multiple Sheets at One Time
    By maurices5000 in forum Excel General
    Replies: 2
    Last Post: 07-23-2007, 02:00 PM
  8. [SOLVED] How do I protect multiple sheets at one time?
    By Kelly in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2006, 12:30 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