![]() |
|
|
Thread Tools | Display Modes |
#5
|
|||
|
|||
![]()
Your code is failing because the bookmark doesn't enclose the entire row, though you don't need the bookmark as you can access the row directly through the content controls range.
Code:
Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean) With ContentControl If .Range.Information(wdWithInTable) Then .Range.Rows(1).Range.Font.Hidden = Not .Checked End If End With End Sub |
|
![]() |
||||
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 |