Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to spell check Text Form Fields in MS Wor
Message
De
11/09/2000 11:00:08
 
 
À
11/09/2000 10:50:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00414905
Message ID:
00414916
Vues:
28
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform