View Single Post
 
Old 01-08-2024, 07:49 AM
ctviggen ctviggen is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Feb 2021
Posts: 54
ctviggen is on a distinguished road
Default Simple macro recorded from recorder doesn't work to enable spell checking in single document

Word options, proofing, has exceptions for a single document that "hide spelling errors in this document only" and "hide grammar errors in this document only".


I ran the macro recorder on a document where both those were checked, so I unchecked them. I then saved the macro and copied it to a dotm file where I have a bunch of saved macros.



What I normally do is select the document (e.g., put the cursor in that document), then run a macro from the dotm file. This does not work for this particular macro:


Code:
Sub TurnOnSpellCheckforThisDocument()
'
' TurnOnSpellCheckforThisDocument Macro
' Ensures that spell check is enabled (not disabled) for this document
'
    ActiveDocument.ShowGrammaticalErrors = False
    ActiveDocument.ShowSpellingErrors = False
End Sub
Is the macro wrong? Or is there something I'm missing? Thank you.
Reply With Quote