+ Reply to Thread
Results 1 to 2 of 2

Protecting a worksheet in multiple steps? Code + Example

  1. #1
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Protecting a worksheet in multiple steps? Code + Example

    Hi all,

    I'm trying to set up protection on my excel sheet.. and the way I imagine it, would be, when someone opens the workbook, they have to input a password, if they don't or the password isn't correct, they can only observe the workbook, and can't even select cells or do anything. Then if the password is correct, the next .Protect gets applied. Which allows some things but not everything, and to get the Sheet completely unprotected, there would be a button which will ask for the Admin Password and that will unprotect it completely, so the structure is okay but.. its just not exactly right as I code it...

    Can I get some help with this please?

    Here is my code, and my exact question within:

    Please Login or Register  to view this content.
    I also attached the workbook called "Protect" which has the same code in it. You will have to run the macro from the VBE now as I commented out the Auto_Open.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: Protecting a worksheet in multiple steps? Code + Example

    Question posted on Mr.Excel Message Board as well. Link: https://www.mrexcel.com/forum/excel-...ml#post5256606

+ 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. Need vba code for a macro to run in 3 steps.
    By BrookeAas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2016, 04:31 PM
  2. VBA code for Protecting all Worksheet
    By Vivek2705 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2016, 08:05 AM
  3. vba running by steps / hide code
    By zico8 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2015, 03:42 PM
  4. How to set up the steps for creating code
    By ammartino44 in forum Excel General
    Replies: 1
    Last Post: 03-13-2015, 02:01 PM
  5. [SOLVED] VBA code for protecting Worksheet leaves sheet unprotected if applied twice
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2014, 07:28 PM
  6. Replies: 10
    Last Post: 04-18-2012, 10:33 AM
  7. Clean Up Code - consolidate steps
    By Frantic Excel-er in forum Excel General
    Replies: 6
    Last Post: 06-30-2005, 11:05 AM

Tags for this Thread

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