View Single Post
 
Old 06-10-2016, 03:08 PM
PSSMargaret PSSMargaret is offline Windows 10 Office 2010 64bit
Novice
 
Join Date: May 2016
Posts: 28
PSSMargaret is on a distinguished road
Default

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
I should also include that it's checking legacy form fields when the form unlocks.
Reply With Quote