Untitled
unknown
plain_text
9 months ago
529 B
7
Indexable
Private Sub UserForm_Activate()
Dim sh As Worksheet
Dim wsh As Worksheet
Set sh = ThisWorkbook.Sheets("USER MANAGEMENT")
ThisWorkbook.Unprotect 1234
sh.Visible = xlSheetVisible
For Each wsh In ThisWorkbook.Worksheets
If wsh.Name <> "USER MANAGEMENT" Then
wsh.Visible = xlSheetHidden
End If
Next wsh
sh.Unprotect 1234
sh.Cells.EntireColumn.Hidden = False
sh.Cells.EntireRow.Hidden = False
sh.Protect 1234
ThisWorkbook.Protect 1234
ActiveWindow.DisplayWorkbookTabs = False
End SubEditor is loading...
Leave a Comment