View Single Post
 
Old 06-09-2016, 07:15 PM
PSSMargaret PSSMargaret is offline Windows 10 Office 2010 64bit
Novice
 
Join Date: May 2016
Posts: 28
PSSMargaret is on a distinguished road
Default VBA Code for Grammar Check Not Working in Word 2016

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