** This is for Word 2007**
I was trying to figure out if you can still somehow create a macro that will
unprotect a fill-in document do a spell check and I found a solution. Make
sure you are saving this as a Word Document Macro-Enabled (.docm)
Create a new keyboard macro be sure you select you want to save in this the
active document you are working on NOT NORMAL TEMPLATE. Personally since more
than one person will be using my form and most Word users know the shortcut
to spell check I used the MS shortcut key F7 as my shortcut key. You can
selected your desired shortcut key. ** Be sure to select the drop down to
save this shortcut key in the current document. **AGAIN YOU SHOULD NOT SAVE
ANYTHING TO THE NORMAL TEMPLATE!! If you do just copy then delete the macro
completely from your Normal.dotm and recreate the macro in your active
document.
Hit Record Macro (Developer Tab) and as so as you hit record you can hit
stop recording. (this is just so that you can apply the shortcut to the Macro)
Go into the VBA application (from your developer tab) and paste the
following code under your macro name. **DO NOT DELETE YOUR MACRO NAME**
'
' Spelling Macro
' Run Spell check on a Protected Fill in Document with a Password
''
ActiveDocument.Unprotect "Password"
Selection.WholeStory
Selection.LanguageID = wdEnglishUS
ActiveDocument.CheckSpelling
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True,
Password:="Password"
End Sub
You would then insert your password where I have "Password" - DO NOT DELETE
THE ""
To ensure that a user can not view your password you can protect your VBA
coding in the Tools, Project Properties section of VBA.
** If this document is protected but does not have a password just delete
"Password" from the first line and delete the last line before End Sub.