D
Dave
Hello All,
I'm trying to use a check box on my template to determine whether a
paragraph should be hidded. I managed to get it to work a couple times but it
stopped when I added an additional macro to do the same thing except on a
different check box/bookmark. I will have at least 8 other check boxes on
this template that I would like to do the same thing. Any ideas on what I'm
doing wrong?? Here's the code:
Sub mcr1A()
ActiveDocument.Unprotect Password:=""
Set vCheck1 = ActiveDocument.FormFields("chk1A").CheckBox
If vCheck1 = True Then
ActiveDocument.Bookmarks("bk1A").Select
With Selection.Font
.Hidden = False
End With
Else
ActiveDocument.Bookmarks("bk1A").Select
With Selection.Font
.Hidden = True
End With
End If
ActiveDocument.Protect Password:="", NoReset:=True, Type:= _
wdAllowOnlyFormFields
End Sub
I'm trying to use a check box on my template to determine whether a
paragraph should be hidded. I managed to get it to work a couple times but it
stopped when I added an additional macro to do the same thing except on a
different check box/bookmark. I will have at least 8 other check boxes on
this template that I would like to do the same thing. Any ideas on what I'm
doing wrong?? Here's the code:
Sub mcr1A()
ActiveDocument.Unprotect Password:=""
Set vCheck1 = ActiveDocument.FormFields("chk1A").CheckBox
If vCheck1 = True Then
ActiveDocument.Bookmarks("bk1A").Select
With Selection.Font
.Hidden = False
End With
Else
ActiveDocument.Bookmarks("bk1A").Select
With Selection.Font
.Hidden = True
End With
End If
ActiveDocument.Protect Password:="", NoReset:=True, Type:= _
wdAllowOnlyFormFields
End Sub