![]() |
|
|
Thread Tools | Display Modes |
#3
|
|||
|
|||
![]()
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. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hiding rich text content control using checkbox - Removing extra spacing | TheOstrich | Word VBA | 4 | 11-15-2023 11:58 AM |
![]() |
DEsh | Word VBA | 2 | 10-06-2017 08:23 PM |
![]() |
DougsGraphics | Word VBA | 2 | 06-24-2015 07:31 AM |
![]() |
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |