View Single Post
 
Old 11-07-2023, 02:24 PM
KSmart KSmart is offline Windows 10 Office 2021
Novice
 
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