Password protect worksheet for multiple users

Mötley

Board Regular
Joined
Aug 3, 2011
Messages
93
Hello,

let's say users A and B share same protected workbook. User A wants to edit workbook, then he protects it again with password. Then user B wants to edit this same workbook, but he CANNOT edit, delete etc cells user A just modified. How can I do this or is this even possible??

In a nut shell, same workbook with password protection, Users A and B both have the same workbook, User A modifies workbook, then protects. User B modifies workbook but cannot edit user A's cells.

Thank you in advance!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Does it matter if they know what was changed or not?

You could enable "track changes" to make what changes were made visible.
 
Upvote 0
Maybe I could use macro?? So that when A or B opens workbook, it asks "User name" and "Password" ???
 
Upvote 0
you could do that, but it would still allow them to delete the previous editings. Is that not what you wanted to avoid?
 
Upvote 0
Alright.. So what are my options? What is the best way to do this? Or is there?

how about this code

Code:
Private Sub CommandButton69_Click()

Dim UserName As String
Dim Pword As String
Dim Qualifier As String

Sheets("Maansiirtoautot").Select

Application.ScreenUpdating = False

UserName = InputBox("Enter your name")
Qualifier = InputBox("Enter your password")

Select Case UserName
    Case "Mikko"
        If Qualifier = "1" Then              
        ActiveSheet.Unprotect Password:="1"          
        Columns("AU23:BA24").Select
        Selection.Locked = False
        [A1].Select
        ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="1" 'Replace with the worksheet password
        Else
        MsgBox ("That is the incorrect password. Close the book and try again")
        End If
        
    Case "Lynn"
        If Qualifier = "2" Then          
        ActiveSheet.Unprotect Password:="2"     
        Columns("AU23:BA24").Select
        Selection.Locked = False
        [A1].Select
        ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="test_one"
        Else
        MsgBox ("That is the incorrect password. Close the book and try again")
        End If
    Case Else
        MsgBox ("You have view only rights to this spreadsheet")

End Select
Application.ScreenUpdating = True

End Sub
 
Upvote 0
i'd love to give some ingenious idea... but personally, im at a loss. keep posting and maybe someone else will have a workaround.

sorry, wish i could help on this one. i'll keep thinking and repost if it strikes me.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top