F
Fan924
I can hide a single Worksheet.
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Worksheets(1).Visible = False
' Worksheets(1).Visible = True
End Sub
I want to hide a single Worksheet, but only when the Workbook is
protected. How do I detect a protected workbook?
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Worksheets(1).Visible = False
' Worksheets(1).Visible = True
End Sub
I want to hide a single Worksheet, but only when the Workbook is
protected. How do I detect a protected workbook?