Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I had a macro for spell checking forms for Office 97 Word form fields. The
macro is not working for Office 2003 based Word form fields. Here is my old macro... Sub FormsSpellCheck() ' If document is protected, Unprotect it. If ActiveDocument.ProtectionType wdNoProtection Then ActiveDocument.Unprotect Password:="" End If ' Set the language for the document. Selection.WholeStory Selection.LanguageID = wdEnglishUS ' Perform Spelling/Grammar check. If Options.CheckGrammarWithSpelling = True Then 'ActiveDocument.CheckGrammar ActiveDocument.CheckSpelling Else ActiveDocument.CheckSpelling End If ' ReProtect the document. If ActiveDocument.ProtectionType = wdNoProtection Then ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End If End Sub |
#2
![]() |
|||
|
|||
![]()
See http://www.mvps.org/word/FAQs/Macros...ProtectDoc.htm. The
macro there works in Word 2003 and is the product of a lot of time by some very smart people. Hope it helps. -- Charles Kenyon Word New User FAQ & Web Directory: http://addbalance.com/word Intermediate User's Guide to Microsoft Word (supplemented version of Microsoft's Legal Users' Guide) http://addbalance.com/usersguide See also the MVP FAQ: http://www.mvps.org/word which is awesome! --------- --------- --------- --------- --------- --------- This message is posted to a newsgroup. Please post replies and questions to the newsgroup so that others can learn from my ignorance and your wisdom. "marcia_mcmahon" wrote in message ... I had a macro for spell checking forms for Office 97 Word form fields. The macro is not working for Office 2003 based Word form fields. Here is my old macro... Sub FormsSpellCheck() ' If document is protected, Unprotect it. If ActiveDocument.ProtectionType wdNoProtection Then ActiveDocument.Unprotect Password:="" End If ' Set the language for the document. Selection.WholeStory Selection.LanguageID = wdEnglishUS ' Perform Spelling/Grammar check. If Options.CheckGrammarWithSpelling = True Then 'ActiveDocument.CheckGrammar ActiveDocument.CheckSpelling Else ActiveDocument.CheckSpelling End If ' ReProtect the document. If ActiveDocument.ProtectionType = wdNoProtection Then ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End If End Sub |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Where does word 2003 store list of words 'ignored' during spell ch | Microsoft Word Help | |||
How do I get all my Word documents within one Word window | Microsoft Word Help | |||
Macros - Keyboard Commands | Microsoft Word Help | |||
How do you spell check text entered into a Word form field? | Microsoft Word Help | |||
Getting Spell Check Macro to work | Microsoft Word Help |