![]() |
#1
|
|||
|
|||
![]()
The code below works perfectly in Word 2010 for spell checking and grammar checking but it's not working in Word 2016. Does anyone have an idea why?
HTML Code:
Sub RunSpellCheck() ActiveDocument.Unprotect Selection.WholeStory Selection.LanguageID = wdEnglishUS ActiveDocument.CheckSpelling ActiveDocument.CheckGrammar ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End Sub |
#2
|
|||
|
|||
![]()
I edited the code (below) and as I said, it runs perfect on my computer with Word 2010 but on another computer with Word 2016, the grammar portion is not running. Help!
Code:
Sub RunSpellCheck() ActiveDocument.Unprotect Selection.WholeStory Selection.LanguageID = wdEnglishUS If Options.CheckGrammarWithSpelling = True Then ActiveDocument.CheckGrammar Else ActiveDocument.CheckSpelling End If ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End Sub |
#3
|
||||
|
||||
![]()
Cross-posted at: http://answers.microsoft.com/en-us/o...6-16ee84843d5e
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
x7lillies | Word | 3 | 07-30-2014 02:02 PM |
![]() |
ilcaa72 | Word VBA | 1 | 02-13-2014 12:15 PM |
spell and grammar check | bull | Word | 2 | 07-24-2013 10:28 AM |
![]() |
sledge105 | Word | 1 | 08-17-2011 02:09 PM |
![]() |
Quadrillion | Word | 3 | 08-13-2011 02:57 PM |