![]() |
|
#4
|
||||
|
||||
|
This would really be better if you were using Content Controls. I think you should either:
1. Change to content controls or 2. Change your checkboxes to option buttons The only benefit of using legacy fields over Content Controls is the availability of legacy Option buttons and the ability to group them so only one can be turned on at a time. You are trying to replicate that built-in functionality with code because you chose a checkbox instead of an option button. But doing it with the legacy checkbox field, for that macro you just need a single line Code:
Private Sub LPja_Click()
ActiveDocument.Bookmarks("TabelLP").Range.Font.Hidden = Not LPja.Value
End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VBA to show/hide checkboxes- always showing bookmark | KSmart | Word VBA | 4 | 11-07-2023 02:24 PM |
| Bookmark will not show/hide based on CC Checkbox | lord_kaiser | Word VBA | 1 | 04-17-2018 01:19 AM |
How to use checkbox to show/hide bookmarked text?
|
namrehx | Word VBA | 16 | 12-14-2017 01:45 PM |
| How to use checkbox to show and hide bookmarked text? | namrehx | Word VBA | 1 | 12-12-2017 02:17 PM |
Show/Hide Text based on Checkbox Selection
|
tammytran105 | Word VBA | 7 | 10-02-2014 04:30 PM |