View Single Post
 
Old 01-02-2024, 11:40 AM
AVarg123 AVarg123 is offline Windows 10 Office 2016
Novice
 
Join Date: Dec 2021
Posts: 15
AVarg123 is on a distinguished road
Default

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.
Attached Images
File Type: png pic.png (34.8 KB, 23 views)
Reply With Quote