I have searched with no luck. I am trying to hide the content of Cells A21 and B21 when the checkbox in D21 is unchecked and then unhide the same two cells when the same check box is checked. The best I have come up with is formatting the cells to ";;;" to hide them, but I can not for the life of me make it remove the ";;;" and unhide them. Is there a better way?
That is the best I have made so farSub Hide()
If ThisWorkbook.Worksheets(1).Shapes("Check Box 19").OLEFormat.Object.Value = 1 Then
Range("A21:B21").Select
Selection.NumberFormat = ";;;"
ElseIf ThisWorkbook.Worksheets(1).Shapes("Check Box 19").OLEFormat.Object.Value = 0 Then
Range("A21:B21").Select
Selection.NumberFormat = ""
End If
End Sub
Bookmarks