Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.ScreenUpdating = False
Sheet14.Visible = True
Dim sh As Worksheet
For Each sh In Worksheets
If sh.Name <> Sheet14.Name Then
If sh.Name <> Sheet1.Name Then sh.Protect Password:="123"
sh.Visible = xlSheetVeryHidden
End If
Next
ThisWorkbook.Save
Application.ScreenUpdating = True
End Sub
Private Sub Workbook_Open()
Application.Visible = False
UserForm1.Show
End Sub