Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 12-12-2017, 01:50 PM
namrehx namrehx is offline How to use checkbox to show and hide bookmarked text? Windows 10 How to use checkbox to show and hide bookmarked text? Office 2013
Novice
How to use checkbox to show and hide bookmarked text?
 
Join Date: Nov 2017
Posts: 12
namrehx is on a distinguished road
Default How to use checkbox to show and hide bookmarked text?

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
  #2  
Old 12-12-2017, 02:17 PM
macropod's Avatar
macropod macropod is offline How to use checkbox to show and hide bookmarked text? Windows 7 64bit How to use checkbox to show and hide bookmarked text? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

This duplicates what you've asked here: https://www.msofficeforums.com/word-...tml#post122549
Please don't ask the same question in multiple threads. Thread closed. You may continue the discussion in your other thread.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Closed Thread



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use checkbox to show and hide bookmarked text? 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? Hide/Show text based upon check box status 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
How to use checkbox to show and hide bookmarked text? Show/Hide Text based on Checkbox Selection tammytran105 Word VBA 7 10-02-2014 04:30 PM
How to use checkbox to show and hide bookmarked text? VBA for CheckBox to Hide Slides mutchy25 PowerPoint 1 09-21-2012 01:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft