VBA Gerus,
If my code selects a word in a document (e.g., "while"), how do I
determine if the word is part of a grammar error without stepping
through each error in the document to locate it?
The code "For Each MisWord In ActiveDocument.GrammaticalErrors" can be
used to step through and identity each error, but what I need is to be
on a word and determine if it is part of a grammar error.
Thanks.
Charlie from Texas
Tony Jollans - 27 Feb 2008 18:57 GMT
I guess you should use it with caution - but no more caution than the whole
collection or anything else to do with grammar.
Selection.Range.GrammaticalErrors.Count
should be >0 if the selection is part of a grammatical error.

Signature
Enjoy,
Tony
> VBA Gerus,
>
[quoted text clipped - 9 lines]
>
> Charlie from Texas
Charlie Mac - 27 Feb 2008 19:21 GMT
Tony,
That is exactly what I needed. Thank you.
Take care,
Charlie from Texas
>I guess you should use it with caution - but no more caution than the whole
>collection or anything else to do with grammar.
>
> Selection.Range.GrammaticalErrors.Count
>
>should be >0 if the selection is part of a grammatical error.