StillUnderstanding
Board Regular
- Joined
- Jan 30, 2021
- Messages
- 80
- Office Version
- 365
- Platform
- Windows
- MacOS
Hello Everyone,
So I am working on a workbook that will be saved in 2 locations, 1 location will allow for full access and the other will allow access to only select tabs.
When I save the unrestricted file to the restricted location I want for it to call a sub that restricts parts of the workbook.
Here is what I tried but it wont work, can anyone help with this?
Thanks!
Private Sub Workbook_Location_Lock()
If Dir("https://file-location/filename.xlms") <> "" Then
Call call_the_sub
Else
MsgBox "Admin Mode Activated"
End If
End Sub
So I am working on a workbook that will be saved in 2 locations, 1 location will allow for full access and the other will allow access to only select tabs.
When I save the unrestricted file to the restricted location I want for it to call a sub that restricts parts of the workbook.
Here is what I tried but it wont work, can anyone help with this?
Thanks!
Private Sub Workbook_Location_Lock()
If Dir("https://file-location/filename.xlms") <> "" Then
Call call_the_sub
Else
MsgBox "Admin Mode Activated"
End If
End Sub