J
Jules
I have set up a macro to highlight fields so that the printed document shows
the fields as shaded
This is the macro
On Error GoTo Nomorshading_Error
Dim oField As Field
For Each oField In ActiveDocument.Fields
oField.Result.HighlightColorIndex = wdGray25
Next oField
Release:
On Error Resume Next
Set oField = Nothing
Exit Sub
Nomorshading_Error:
Call MsgBox(Err.Description, vbCritical, "Nomoreshading() Catastrophic
Error")
GoTo Release
End Sub
This highlights fields such as fillins, asks etc. but does not highlight
mergefields that are brought into the document from a database package we
use. Any suggestions on getting the mergefields from the database to
highlight as well?
thanks
the fields as shaded
This is the macro
On Error GoTo Nomorshading_Error
Dim oField As Field
For Each oField In ActiveDocument.Fields
oField.Result.HighlightColorIndex = wdGray25
Next oField
Release:
On Error Resume Next
Set oField = Nothing
Exit Sub
Nomorshading_Error:
Call MsgBox(Err.Description, vbCritical, "Nomoreshading() Catastrophic
Error")
GoTo Release
End Sub
This highlights fields such as fillins, asks etc. but does not highlight
mergefields that are brought into the document from a database package we
use. Any suggestions on getting the mergefields from the database to
highlight as well?
thanks