From: B on 21 Jan 2010 17:29 In MS Word 2007, I'm trying to create a macro to avoid having to go through the steps "Word options > Proofing >Recheck document ... " every time I need to clear the old spell-check files and recheck spelling in a document. My macro looks like this: Sub SpellRecheck() ' ' SpellRecheck Macro ' ' Application.ResetIgnoreAll ActiveDocument.SpellingChecked = False ActiveDocument.GrammarChecked = False End Sub It does not work. Any idea why, and what I can do to make it work? Other macros I've written work fine. Thanks for any advice!
From: Doug Robbins - Word MVP on 21 Jan 2010 20:26 Try Application.ResetIgnoreAll ActiveDocument.SpellingChecked = False ActiveDocument.GrammarChecked = False ActiveDocument.Range.CheckSpelling -- Hope this helps, Doug Robbins - Word MVP Please reply only to the newsgroups unless you wish to obtain my services on a paid professional basis. "B(a)TDA" <B(a)TDA@discussions.microsoft.com> wrote in message news:6CDE74A1-C4A9-4CBE-B6A6-C9DFA1E69A63(a)microsoft.com... > In MS Word 2007, I'm trying to create a macro to avoid having to go > through > the steps "Word options > Proofing >Recheck document ... " every time I > need > to clear the old spell-check files and recheck spelling in a document. My > macro looks like this: > > Sub SpellRecheck() > ' > ' SpellRecheck Macro > ' > ' > Application.ResetIgnoreAll > ActiveDocument.SpellingChecked = False > ActiveDocument.GrammarChecked = False > End Sub > > It does not work. Any idea why, and what I can do to make it work? Other > macros I've written work fine. Thanks for any advice!
|
Pages: 1 Prev: Automated Page Numbers Next: Viewing Word 2007 docs in Office XP |