View Single Post
 
Old 10-21-2018, 06:09 PM
kateabode kateabode is offline Windows 7 64bit Office 2016
Novice
 
Join Date: Sep 2018
Posts: 16
kateabode is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Here is some aircode that might get you started. I'll assume that you use the checkbox Tag property to store the associated bookmark name
Code:
Dim aCtl as MSForms.Control
For Each aCtl In Me.Controls
  Select Case TypeName(aCtl)
    Case "CheckBox"
      If ActiveDocument.Bookmarks.Exists(aCtl.Tag) then
        ActiveDocument.Bookmarks(aCtl.Tag).Range.Font.Hidden = Not aCtl.Value
      End If
  End Select
Next aCtl
Thanks for your help.

Can you help me understand the code? Also, where in the code do I write the name of the bookmark associated?
Reply With Quote