MS Word - How to use checkbox to hide or unhide standard content
Ho Kiat Ho Kiat
21 subscribers
6,471 views
0

 Published On Mar 22, 2023

Angled bracket not allowed in description. Therefore replace { with 'less than angled bracket' and } with 'more than angled bracket'.

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
End Sub

show more

Share/Embed