Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-08-2024, 07:49 AM
ctviggen ctviggen is offline Simple macro recorded from recorder doesn't work to enable spell checking in single document Windows 10 Simple macro recorded from recorder doesn't work to enable spell checking in single document Office 2016
Advanced Beginner
Simple macro recorded from recorder doesn't work to enable spell checking in single document
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Modify recorded macro to run until end of document peter961 Word VBA 1 09-04-2017 02:50 PM
Spell check macro within macro button field doesn't work in one document samuelle Word VBA 0 07-20-2016 02:27 AM
Simple macro recorded from recorder doesn't work to enable spell checking in single document Italian Spell and Grammar check doesn't work fionnymy Word 16 04-03-2013 02:39 AM
Spell check checking only part of document Adeyo Word 1 02-24-2013 10:49 PM
simple code doesn't work help piper7971 PowerPoint 2 08-19-2010 08:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft