Paste this in the respective sheet module
Code:
Private Sub CheckBox1_Click()
If Me.CheckBox1.Value = True Then
Me.CheckBox1.Caption = "Unhide"
Me.Shapes("WARNING").Visible = msoFalse
Else
Me.CheckBox1.Caption = "Hide"
Me.Shapes("WARNING").Visible = msoTrue
End If
End Sub
Private Sub CheckBox2_Click()
If Me.CheckBox2.Value = True Then
Me.CheckBox2.Caption = "Unhide"
Me.Range("B2").Value = ""
Else
Me.CheckBox2.Caption = "Hide"
Me.Range("B2").Value = "WARNING DO NOT ENTER"
End If
End Sub
But curious as to why you want to do this with two checkboxes, instead of one?
Bookmarks