View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Envelope in protected document

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
Word MVP web site http://word.mvps.org


caclayt wrote:
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?