View Single Post
 
Old 07-09-2019, 05:10 PM
dpaton05 dpaton05 is offline Windows 10 Office 2016
Novice
 
Join Date: Jul 2019
Posts: 19
dpaton05 is on a distinguished road
Default

I couldn't get it working with your code but I got it working with this code,


Code:
Private Sub CommandButton3_Click()
    ActiveDocument.Unprotect
    ActiveDocument.CheckSpelling
    ActiveDocument.CheckGrammar
        ActiveDocument.Protect _
            Type:=wdAllowOnlyFormFields, _
            NoReset:=True, _
            Password:=""
    
End Sub

The only problem is that if you press cancel on the spell checker I get an error message saying "The ToolsProtectDocument is currently disabled".
Reply With Quote