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