![]() |
#1
|
|||
|
|||
![]()
I am able to use a checkbox to show and hide a bookmarked text but I am having problems in working with multiple checkboxes for the same bookmark.
I have two checkboxes, CheckBox1 and CheckBox2. Both checkboxes, when checked individually, will show the same bookmarked text called Bookmark1. Say that I check both of them and then later decide to uncheck one of them, the bookmark will then hide. I want the bookmark to still be showing since the other checkbox is still checked. The bookmark should only hide when both checkboxes are unchecked. How can i work around this or recode this? Thanks. This is what I currently have: Code:
Private Sub CheckBox1_Click() ActiveDocument.Bookmarks("Bookmark1").Range.Font.Hidden = Not CheckBox1.Value End Sub Private Sub CheckBox2_Click() ActiveDocument.Bookmarks("Bookmark1").Range.Font.Hidden = Not CheckBox2.Value End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
namrehx | Word VBA | 16 | 12-14-2017 01:45 PM |
![]() |
nathan.gray@emerson.com | Word VBA | 5 | 12-08-2017 01:08 PM |
Show/hide text macro and security issues? | subspace3 | Word VBA | 1 | 10-05-2014 10:05 AM |
![]() |
tammytran105 | Word VBA | 7 | 10-02-2014 04:30 PM |
![]() |
mutchy25 | PowerPoint | 1 | 09-21-2012 01:40 AM |