Protected Forms and Formatting

  • Thread starter Thread starter Becky
  • Start date Start date
B

Becky

I have several protected forms being used as templates.
The users cannot do any formatting on the template because
it is protected. Some of the things they are trying to do
are- Bold, Italic, Font changes, and create envelopes.

At one point, they could not do a spell check either but I
found a Macro that fixed that issue.

Does anyone know of a macro or any other way to fix the
formatting and envelope issue in a protected document?
 
Becky -

I'm unable to help w/ your formatting issue...but how did you allow for spellchecking in the forms field? What macro were you utilizing??? I would greatly appreciate any assistance.
 
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
-----Original Message-----
Becky -

I'm unable to help w/ your formatting issue...but how did
you allow for spellchecking in the forms field? What
macro were you utilizing??? I would greatly appreciate any
assistance.
 
Hi Becky,

Essentially, you need to use the same approach as with
spelling: you set up a macro to unprotect, apply the
formatting, reprotect. Typically, I'll set up a toolbar with
the formatting allowed, each button connected to a macro.

Things get really complicate, however, if you're using tables
because the user can't select normally if the form field is
in a table cell...
I have several protected forms being used as templates.
The users cannot do any formatting on the template because
it is protected. Some of the things they are trying to do
are- Bold, Italic, Font changes, and create envelopes.

At one point, they could not do a spell check either but I
found a Macro that fixed that issue.

Does anyone know of a macro or any other way to fix the
formatting and envelope issue in a protected document?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)
 
Back
Top