Getting access to misspelled word and their correction from macro or VB.net?

T

Tomas

Hi,

I wonder if it is possible to get access to the words that have been
corrected (left clicking and chose an alternative) by a user.

Does MS-word store, log, or record this information? I am working in
VB.net if their access to this information from a word class, it would
be great.

Any help or direction, would be most appreciated,

Tomas :)
 
J

Jay Freedman

No, Word does not store any record of what has been corrected unless
Track Changes is turned on, and that makes no distinction between
spelling corrections and any other kind of editing.

You can get the list of uncorrected spelling errors, which is in the
document's .SpellingErrors collection.

If your program takes a copy of the document's .Range.Text string and
a copy of its .SpellingErrors collection at one point in time, and
then again later, it can compare the two sets to find out which errors
were corrected and what the replacement was. This will not be a
trivial exercise. :)

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 

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