Envelope in protected document

G

Guest

I have figured out how to protect sections, so that users do not type in
areas where they shouldn't. However, when the document in protected, it will
not allow us to print envelopes. Is there a way to unprotect that feature?
 
G

Graham Mayor

This sounds like a letterhead template in which using form fields will
seriously inhibit any creative use of the template. You might be better
simply creating a standard letterhead -
http://sbarnhill.mvps.org/WordFAQs/Letterhead.htm in conjunction with
macrobutton fields http://www.gmayor.com/Macrobutton.htm

Otherwise use a macro to intercept the envelope wizard (IN THE TEMPLATE)
unlock the form add the envelope then lock the form again. eg

Sub ToolsEnvelopesAndLabels()
Dim bProtected As Boolean
'Unprotect the file
If ActiveDocument.ProtectionType <> wdNoProtection Then
bProtected = True
ActiveDocument.Unprotect Password:=""
End If
Dialogs(wdDialogToolsEnvelopesAndLabels).Show
'Reprotect the document.
If bProtected = True Then
ActiveDocument.Protect _
Type:=wdAllowOnlyFormFields, NoReset:=True, Password:=""
End If
End Sub


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top