![]() |
|
|
|
#1
|
|||
|
|||
|
Awesome! That works! I'm able to hide and display multiple bookmarks with just one checkbox. Thank you very much!
|
|
#2
|
|||
|
|||
|
Hi,
Need more help. How do i make a bookmark that is tied to multiple checkboxes, stay displayed if at least one of the checkbox that is tied to it is checked? Look below at the following scenarios: What is currently happening: 1) Checkbox1 is checked 2) Bookmark1 appears 3) Checkbox2 is checked 4) Bookmark1 stays displayed 5) Checkbox1 is unchecked 6) Bookmark1 disappears What I want to happen: 1) Checkbox1 is checked 2) Bookmark1 appears 3) Checkbox2 is checked 4) Bookmark1 stays displayed 5) Checkbox1 is unchecked 6) Bookmark1 stays displayed (because checkbox2 is still checked) 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
|
|
#3
|
|||
|
|||
|
What I am trying to say is that 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 re-code this or does VBA not have this capability? Thanks. 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
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hide rows with checkbox | gebobs | Excel | 3 | 03-24-2015 12:05 PM |
| Show/hide text macro and security issues? | subspace3 | Word VBA | 1 | 10-05-2014 10:05 AM |
Show/Hide Text based on Checkbox Selection
|
tammytran105 | Word VBA | 7 | 10-02-2014 04:30 PM |
Hide Checkbox When Printing
|
vinceplunkett | Word | 1 | 12-03-2013 01:53 AM |
VBA for CheckBox to Hide Slides
|
mutchy25 | PowerPoint | 1 | 09-21-2012 01:40 AM |