B
bryan
Trying to hide <text2> and <text3> (same line, continuous) if <text1> is ""
so that when printing everything below text2 and 3 move up
Form is protected
Here's what I have but, I get "Requested member of collection does not exitst"
Sub tx1()
If ActiveDocument.FormFields("Text1").Result = "" Then
ActiveDocument.Unprotect
ActiveDocument.Styles("Text2").Font.Hidden = True
ActiveDocument.Styles("Text3").Font.Hidden = True
ActiveDocument.Protect wdAllowOnlyFormFields, Noreset
End If
End Sub
Help!
Thanks,
Bryan
so that when printing everything below text2 and 3 move up
Form is protected
Here's what I have but, I get "Requested member of collection does not exitst"
Sub tx1()
If ActiveDocument.FormFields("Text1").Result = "" Then
ActiveDocument.Unprotect
ActiveDocument.Styles("Text2").Font.Hidden = True
ActiveDocument.Styles("Text3").Font.Hidden = True
ActiveDocument.Protect wdAllowOnlyFormFields, Noreset
End If
End Sub
Help!
Thanks,
Bryan