Identifying a grammar error

C

Charlie Mac

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
 
T

Tony Jollans

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.

--
Enjoy,
Tony

in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top