You have to call CheckSpelling on the range before SpellingErrors is going to be set correctly.
Set MyRange = ActiveDocument.FormFields(2).Range
MyRange.CheckSpelling
>I have a word document with Text Form Fields.
>I am trying to programmatically spell check those fields using the following macro code, but I still get "No Errors Found" message.
>
> ActiveDocument.FormFields(2).Select
> Set myerrors = ActiveDocument.FormFields(2).Range.SpellingErrors
> If myerrors.Count = 0 Then
> MsgBox "No spelling errors found."
> Else
> For Each myErr In myerrors
> MsgBox myErr.Text
> Next
> End If
>
> What is the best way to programmatically spell check form text fields?
>
> Thanks in advance,
> Yana
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05