#1
|
|||
|
|||
Check grammar but NOT spelling with VBA
i am trying to ONLY check for grammar errors (i think this is considered a grammar error and NOT a spelling)
ei. play.I (Word provides) play. I as a correction. head.My (Word provides) head. My as a correction. I tried using ActiveDocument.CheckGrammar thinking it would NOT pick up misspelled words since there is a separate range.checkspelling method but it also picks up misspelled words anyway to isolate the different types of errors that this functions picks up? maybe I could LOOP each error (red squiggly lines) and do an "If Instr(error, contains either . OR ! OR ?) then... ? are these spelling/grammar errors loopable? |
#2
|
||||
|
||||
ei., play.I & head.My are all treated as spelling errors, quite apart from any grammar errors they might imply. You could use a wildcard Find/Replace to fix the play.I & head.My errors:
Find = ([a-z][.,\?])([A-Z]) Replace = \1 \2
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
spell and grammar check | bull | Word | 2 | 07-24-2013 10:28 AM |
spelling and grammar check question | sledge105 | Word | 1 | 08-17-2011 02:09 PM |
Spelling/Grammar check on a novel | Quadrillion | Word | 3 | 08-13-2011 02:57 PM |
A crazy spelling grammar - for diacritics | YooNaa Kim | Word | 3 | 01-28-2011 01:39 PM |
Spelling and grammar checker (ABC Icon in toolbar) | Sleeper | Word | 0 | 01-02-2011 01:25 PM |