mardi 12 novembre 2019

Microsoft Word Visual basic - how to hide text when checkbox is clicked

I've created a checkbox and a small section of text bookmarked as approve to attempt to hide when a checkbox is clicked, but it doesn't seem to be working. I feel that I mus be over-simplifying it for it not to be working, so am I missing anything (still very new to VBA). Here's what I've got:

Private Sub checkbox1_Click()
 ActiveDocument.Bookmarks("approve").Range.Font.Hidden
End Sub

Thanks for any help!




Aucun commentaire:

Enregistrer un commentaire