Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Dim MySheets As String, Response As String
GavinsSheet = "Sheet1"
If ActiveSheet.Name = GavinsSheet Then
ActiveSheet.Visible = False
Response = InputBox("Enter password to view sheet")
If Response = "MyPass" Then
Sheets(GavinsSheet).Visible = True
Application.EnableEvents = False
Sheets(GavinsSheet).Select
Application.EnableEvents = True
End If
End If
Sheets(GavinsSheet).Visible = True
End Sub
如何将其更改为合并5张纸,每张纸具有不同的密码?
非常感谢!
Alec