Multiple users accessing same workbook with password protect to view individual sheet.

domu91

New Member
Joined
May 5, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a macro set on one of my workbooks. The file contains four-employee sheets and a dashboard. The criteria for the macros was that when an employee opens the sheet and inputs their password, that individual sheet will show up. It works; however, I am encountering an issue when all four employees simultaneously open the file and make changes.

There are reports of employees saying they cannot see their sheet; other times, employee one will see employee two-sheet and vice versa. Is there a workaround to this?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
It would be difficult to determine what is happening without seeing the workbook and the code.
 
Upvote 0
It would be difficult to determine what is happening without seeing the workbook and the code.
Sub clear()
Dim toniSh, kiwiSh, shanettaSh, majdaSh As Worksheet
Dim m, m2 As Long
Dim pass As String

Application.Visible = False

Sheet7.Visible = xlSheetVisible
Sheet1.Visible = xlSheetVeryHidden
Sheet2.Visible = xlSheetVeryHidden
Sheet3.Visible = xlSheetVeryHidden
Sheet4.Visible = xlSheetVeryHidden
Sheet5.Visible = xlSheetVeryHidden

pass = ""
pass = InputBox("Please enter the password", "Password")
If pass <> "" And (pass = "T0ni123$" Or pass = "K1wi098$" Or pass = "Sh@nett@465" Or pass = "M@jda751" Or pass = "D@ShBoard99$") Then
If pass = "T0ni123$" Then
Sheet1.Visible = xlSheetVisible
Sheet1.Activate
ElseIf pass = "K1wi098$" Then
Sheet2.Visible = xlSheetVisible
Sheet2.Activate
ElseIf pass = "Sh@nett@465" Then
Sheet3.Visible = xlSheetVisible
Sheet3.Activate
ElseIf pass = "M@jda751" Then
Sheet4.Visible = xlSheetVisible
Sheet4.Activate
Else
Sheet1.Visible = xlSheetVisible
Sheet2.Visible = xlSheetVisible
Sheet3.Visible = xlSheetVisible
Sheet4.Visible = xlSheetVisible
Sheet5.Visible = xlSheetVisible
Sheet5.Activate
End If
Sheet7.Visible = xlSheetVeryHidden
Application.Visible = True
Else
MsgBox "Wrong Password", vbExclamation, "Error Message"
ActiveWorkbook.Save
ActiveWorkbook.Close
End If
 
Upvote 0
Nothing jumps out at me with that code. Have you tried storing the file in OneDrive and use co-authoring instead of shared workbook?
 
Upvote 0
Nothing jumps out at me with that code. Have you tried storing the file in OneDrive and use co-authoring instead of shared workbook?
yeah it is in a onedrive. Folder is shared to the employees. issue is multiple employee using it at once even with onedrive and 365
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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