![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
The direct answer is to change your If line to also check that the CC is a checkbox Code:
If ContentControl.Tag <> "" And ContentControl.Type = wdContentControlCheckBox Then eg Code:
If ContentControl.Tag = "SectionShowHide" then ActiveDocument.Bookmarks(ContentControl.Title).Range .Font.Hidden = Not ContentControl.Checked
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#2
|
|||
|
|||
|
THANK YOU! THANK YOU!
I tried the first one and it worked! You just saved me so many hours of work! |
|
| Tags |
| contentcontrols, vba code, vba content control |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to hide and show a tabel using bookmark and checkbox | Rikke | Word VBA | 5 | 05-01-2024 07:43 AM |
| Hiding rich text content control using checkbox - Removing extra spacing | TheOstrich | Word VBA | 4 | 11-15-2023 11:58 AM |
| Checkbox - toggle hide/unhide other checkbox - XMLMapping | GErl | Word VBA | 9 | 11-19-2020 03:15 PM |
| Bookmark will not show/hide based on CC Checkbox | lord_kaiser | Word VBA | 1 | 04-17-2018 01:19 AM |
Show/Hide Text based on Checkbox Selection
|
tammytran105 | Word VBA | 7 | 10-02-2014 04:30 PM |