Protected Document and Spellcheck

  • Thread starter Thread starter Cathy Grant
  • Start date Start date
C

Cathy Grant

Does anyone know if a document that has protected areas
still be spellchecked?
We have a template/document that has protected areas and
spellcheck will not work on any of the areas. Even those
not proteced.
 
If your document is protected it will not allow a spell
check to be done.
There is a macro you can set up to unprotect the form
check the document and then reprotect.
Here is the code for the Macro:
' 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
Selection.NoProofing = False

' Perform Spelling/Grammar check.
If Options.CheckGrammarWithSpelling = True Then
ActiveDocument.CheckGrammar
Else
ActiveDocument.CheckSpelling
End If

' ReProtect the document.
If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True
End If


*****Here are the steps to put it in place.
1. Unprotect the template.
2. Click Tools.
3. Choose Macro.
4. Choose Macros.
5. Create a new macro with the name "SpellCheck".
6. Click Create.
7. Delete all the Green items in the macro.
8. Copy the macro code from S:\data\becky\projects or
WO\wo 4879\Spellcheck Macro.doc. - Or go to the website -
support.microsoft.com and go to article 191028 method 3.
9. Copy the code and put it in the macro between the
beginning and ending marks.
10. Save your macro TWICE.
11. Go back to Word using the Word icon in the Macro
box.

**If the macro is already created on your PC then you can
start HERE!!
12. Go to Tools, Customize, Macros.
13. Drag the Macro Icon under the Tools menu and under
Spelling & Grammar.
14. Click OK
15. Click Tools, Templates & Add-ins, Organizer, and
Macro Project Items.
16. Copy the New Macro.
17. Click Close.
18. Protect the Document.
19. Save the document.
20. Close the document.


Hope this helps
Becky
 
Thank you!!!!!

-----Original Message-----
If your document is protected it will not allow a spell
check to be done.
There is a macro you can set up to unprotect the form
check the document and then reprotect.
Here is the code for the Macro:
' 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
Selection.NoProofing = False

' Perform Spelling/Grammar check.
If Options.CheckGrammarWithSpelling = True Then
ActiveDocument.CheckGrammar
Else
ActiveDocument.CheckSpelling
End If

' ReProtect the document.
If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True
End If


*****Here are the steps to put it in place.
1. Unprotect the template.
2. Click Tools.
3. Choose Macro.
4. Choose Macros.
5. Create a new macro with the name "SpellCheck".
6. Click Create.
7. Delete all the Green items in the macro.
8. Copy the macro code from S:\data\becky\projects or
WO\wo 4879\Spellcheck Macro.doc. - Or go to the website -
support.microsoft.com and go to article 191028 method 3.
9. Copy the code and put it in the macro between the
beginning and ending marks.
10. Save your macro TWICE.
11. Go back to Word using the Word icon in the Macro
box.

**If the macro is already created on your PC then you can
start HERE!!
12. Go to Tools, Customize, Macros.
13. Drag the Macro Icon under the Tools menu and under
Spelling & Grammar.
14. Click OK
15. Click Tools, Templates & Add-ins, Organizer, and
Macro Project Items.
16. Copy the New Macro.
17. Click Close.
18. Protect the Document.
19. Save the document.
20. Close the document.


Hope this helps
Becky
.
 
Back
Top