Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-07-2023, 02:24 PM
KSmart KSmart is offline VBA to show/hide checkboxes- always showing bookmark Windows 10 VBA to show/hide checkboxes- always showing bookmark Office 2021
Novice
VBA to show/hide checkboxes- always showing bookmark
 
Join Date: Nov 2023
Posts: 3
KSmart is on a distinguished road
Default Check boxes

Thank you once again for your time. I don't think I explained myself that well on my earlier reply.



So I had the checkboxes which I've gotten rid of and changed to content control check boxes like you suggested which is amazing. However, those original checkboxes had VBA code tied to them like this:

Private Sub Auto_Click()
ActiveDocument.Bookmarks("Auto").Range.Font.Hidden = Not AUTO.Value
ActiveDocument.Bookmarks("BAHazard").Range.Font.Hi dden = Not AUTO.Value
ActiveDocument.Bookmarks("BAUTUW").Range.Font.Hidd en = Not AUTO.Value
ActiveDocument.Bookmarks("AutoPricing").Range.Font .Hidden = Not AUTO.Value
ActiveDocument.Bookmarks("BALRS").Range.Font.Hidde n = Not AUTO.Value
End Sub

However, now with the content control checkbox and the VBA code that you were gracious enough to help me with I am only able to show/hide one bookmark vs the 5 that were tied to the previous *check boxes*
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
UserForm with checkboxes that hide/show bookmarked text in document dohertym Word VBA 4 05-16-2022 09:48 PM
Checkbox - toggle hide/unhide other checkboxes and their texts Basse Word VBA 2 05-11-2022 10:43 PM
Hide one bookmark when Two checkboxes are checked AVarg123 Word VBA 4 04-01-2022 06:21 PM
REf Fields show Bookmark whole cell when Bookmark is created by code. pmcpowell Word VBA 2 11-16-2019 07:05 PM
Bookmark will not show/hide based on CC Checkbox lord_kaiser Word VBA 1 04-17-2018 01:19 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:23 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