Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2014, 10:36 AM
ilcaa72 ilcaa72 is offline Check grammar but NOT spelling with VBA Windows 7 64bit Check grammar but NOT spelling with VBA Office 2010 64bit
Novice
Check grammar but NOT spelling with VBA
 
Join Date: Jan 2014
Posts: 27
ilcaa72 is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 02-13-2014, 12:15 PM
macropod's Avatar
macropod macropod is offline Check grammar but NOT spelling with VBA Windows 7 32bit Check grammar but NOT spelling with VBA Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
spell and grammar check bull Word 2 07-24-2013 10:28 AM
Check grammar but NOT spelling with VBA spelling and grammar check question sledge105 Word 1 08-17-2011 02:09 PM
Check grammar but NOT spelling with VBA Spelling/Grammar check on a novel Quadrillion Word 3 08-13-2011 02:57 PM
Check grammar but NOT spelling with VBA 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft