Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
I need to highlight all the fields in a Word form that have been completed.
I'm a vb novice. . . With assistance from some very helpful postings, I now have a functional form that accomplishes my objectives. However, I'm sure there's a much better way. I currently have one macro per field, each activated when exiting the field. How can I have a macro check all the fields for content and then highlight those that are not blank? And, if I do that, I'm assuming that it would still be best to reference that one macro when exiting each field? |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Use:
Dim i As Long With ActiveDocument .Unprotect For i = 1 To .FormFields.Count With .FormFields(i) If .Type = wdFieldFormTextInput And Trim(.Result) "" Then .Range.Font.Color = wdColorGreen End If End With Next i .Protect wdAllowOnlyFormFields, noreset End With -- Hope this helps, Doug Robbins - Word MVP Please reply only to the newsgroups unless you wish to obtain my services on a paid professional basis. "McWilfred" wrote in message ... I need to highlight all the fields in a Word form that have been completed. I'm a vb novice. . . With assistance from some very helpful postings, I now have a functional form that accomplishes my objectives. However, I'm sure there's a much better way. I currently have one macro per field, each activated when exiting the field. How can I have a macro check all the fields for content and then highlight those that are not blank? And, if I do that, I'm assuming that it would still be best to reference that one macro when exiting each field? |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protecting a form once completed so as others cannot edit | Microsoft Word Help | |||
Can I build a form that can be completed using a letter merge? | Mailmerge | |||
How do you add new fields to a completed mail merge document? | Mailmerge | |||
prevent form being completed until check box has been selected | Microsoft Word Help | |||
Prevent moving on to next field in a form unless it is completed. | Microsoft Word Help |