Password protect to allow visibility to individual sheets by user

Tupelo1984

New Member
Joined
Jan 26, 2021
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hi All,
I wish to protect different sheets in one workbook with a password so they would become only visible and editable to the users who have been provided the PW.

E.g. User Jim has his PW and when navigating to sheet/tab Jim he would get populated a password prompt to be able to see any data or edit data in this sheet. Same for other users with their unique tab.

Is this possible?

Thanks!
Tupelo
 

Attachments

  • Screenshot 2022-01-31 111356.jpg
    Screenshot 2022-01-31 111356.jpg
    6.2 KB · Views: 16

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hello Tupelo,

This is a round about way, but it will work for you.

Insert a rectangle to cover all the visible data. I renamed it 'cover'.

Assign the following macro and protect the sheet.

Then just copy the rectangle, with the macro to every other tab.

If it is protected they get a message box, if not it moves the shape away. (You can change Cells(5, 15) to Cells(500, 600)

VBA Code:
Sub CoverUp()
With ActiveSheet
  If .ProtectContents Or .ProtectDrawingObjects Or .ProtectScenarios Then
    MsgBox "This worksheet is password protected"
  Else
       ActiveSheet.Shapes.Range(Array("Cover")).Left = Cells(5, 15).Left
  End If
End With
End Sub

Jamie
 
Upvote 0

Forum statistics

Threads
1,213,528
Messages
6,114,154
Members
448,553
Latest member
slaytonpa

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