I want to create a form that will allow users to check a box, if the box is checked I want it to hide a sheet, if it's uncheck then it unhides the sheet. how do I do this when craeting a forms control?
Private Sub CheckBox1_Click()
' Sub HideSheets()
ActiveSheet.Unprotect Password:="ANM"
Sheets("Post Review Data").Visible = False
End If
Private Sub CheckBox1_UnClick()
' Sub UnHideSheets()
ActiveSheet.Unprotect Password:="ANM"
Sheets("Post Review Data").Visible = True
End Sub
Private Sub CheckBox1_Click()
' Sub HideSheets()
ActiveSheet.Unprotect Password:="ANM"
Sheets("Post Review Data").Visible = False
End If
Private Sub CheckBox1_UnClick()
' Sub UnHideSheets()
ActiveSheet.Unprotect Password:="ANM"
Sheets("Post Review Data").Visible = True
End Sub