search for spelling errors under VBA control
I have a bunch of text (MS Word - hundreds of pages) that contains LOTS of instances of two adjacent words run together, i.e., the space between them has been omitted (this is OCR text and apparently the product of a rather crappy OCR program). Anyway, i am trying to correct as many of these "glued together pairs' as I can using a programmatic approach. Specifically, I would like to be able to find and select these pairs by searching and selecting them based on Word's ability to "mark" misspellings with the infamous "wavy red line" (WRL). Problem is, I haven't so far been able to discover whatever mysterious magic Microsoft uses to instigate displaying the WRL.
Many MS gurus just tell me it is not possible, but that makes no sense to me; my computer is responding to some sort of stimulus to display the WRL on the screen when a misspelled word is encountered, so it must be marked in some way. Ideas?
I will sort out how to figure the proper place to place the needed space once I am able to find/select the the "glued pair". Any help/comments/information anyone can offer will be muchly appreciated.
|