In our company we have lots of templates with FormFields (FF). With a button on the Forms toolbar you can toggle highlighting of the FFs on the screen. Recently I had a request to have them highlighted in print also. I came up with this little macro:
Sub HighlightFF() 'Toggles highlighting of FormFields on/off for printing purposes Dim ff As FormField Dim hl As Long ProtectionOff hl = ActiveDocument.FormFields(1).Range.HighlightColorIndex If hl = wdNoHighlight Then hl = wdGray25 Else hl = wdNoHighlight End If For Each ff In ActiveDocument.FormFields ff.Range.HighlightColorIndex = hl Next ff ProtectionOn End Sub
I tried this in Word97 too, but it didn’t work flawlessly. It turned out that if the result of a TextInput FF is an empty string, highlighting is not always shown. Don’t want to spent much time finding out why, as we don’t use Word97 much any more.