Hopefully there is an easy answer to this.
I would like the checkbox to change color as well as, or instead of
the default result of changing to a box with an X.
The checkboxes are in a table, the color provides needed visua
emphasis.
Many thanks for any suggestion
Hi there,
Assign this macro to the OnExit event of your formfield checkbox:
'_______________________________________
Sub ChangeCheckboxColor()
Dim ffRange As Range
Dim myFF As FormField
ActiveDocument.Unprotect
Set ffRange = Selection.Cells(1).Range
Set myFF = ffRange.FormFields(1)
Set ffRange = myFF.Range
If myFF.Result = True Then
ffRange.Font.Color = wdColorRed
Else
ffRange.Font.Color = wdColorAutomatic
End If
ActiveDocument.Protect wdAllowOnlyFormFields, True
Set myFF = Nothing
Set ffRange = Nothing
End Sub
'_______________________________________

Signature
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
> Hopefully there is an easy answer to this.
>
[quoted text clipped - 8 lines]
> ------------------------------------------------
> ~~ Message posted from http://www.WordForums.com/
merci!
It is exactly what I needed!
Much appreciated
Jean-Guy Marcil - 29 Feb 2004 18:26 GMT
You're welcome!

Signature
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
> merci!
>
[quoted text clipped - 4 lines]
> ------------------------------------------------
> ~~ Message posted from http://www.WordForums.com/