This is the code I am using. This code will hide the text when I uncheck the ContentControl.
Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean)
If ContentControl.Tag <> "" Then
ActiveDocument.Bookmarks(ContentControl.Tag).Range .Font.Hidden = Not ContentControl.Checked
End If
Issue is: table border will not hide with this code, even though no border style has been selected. pic attached.
|