|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Hi! My logic is prompting me that errors will be visible and, thus, able to be corrected only if all instances of False in the code are replaced with True,
|
#3
|
|||
|
|||
You are correct! Changing "false" to "true" works perfectly. Thank you.
Ugh...I must not have performed the macro recording correctly. Operator error! |
#4
|
|||
|
|||
You are welcome!
|
#5
|
|||
|
|||
See also: Keyboard Shortcuts to change "no proofing" status in Microsoft Word which has a macro linked to a keyboard shortcut to change the "Do not check spelling or grammar" setting for all text in a document to "false" (which is the setting needed to enable spelling check for that text).
|
|
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 |
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 |