Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Lisa@aig Lisa@aig is offline
external usenet poster
 
Posts: 2
Default How do you get the envelopes option to work in a protected doc?

I have a protected letter that allows fields to be filled in. However, when
trying to print envelopes, the option is ghosted. What rights need to be
changed to allow printing of envelopes?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default How do you get the envelopes option to work in a protected doc?

You will have to unlock the template - the basic code required is similar to
that at http://word.mvps.org/FAQs/MacrosVBA/...ProtectDoc.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Lisa@aig wrote:
I have a protected letter that allows fields to be filled in.
However, when trying to print envelopes, the option is ghosted. What
rights need to be changed to allow printing of envelopes?



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Lisa@aig Lisa@aig is offline
external usenet poster
 
Posts: 2
Default How do you get the envelopes option to work in a protected doc

Thanks for your help. Unfortunately, I am not familiar with VBA coding. I
looked at the code you suggested, but it is all greek to me. I'm sure I could
figure it out in time, but time is not available at this point.

"Graham Mayor" wrote:

You will have to unlock the template - the basic code required is similar to
that at http://word.mvps.org/FAQs/MacrosVBA/...ProtectDoc.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Lisa@aig wrote:
I have a protected letter that allows fields to be filled in.
However, when trying to print envelopes, the option is ghosted. What
rights need to be changed to allow printing of envelopes?




  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default How do you get the envelopes option to work in a protected doc

Add the following macro to a toolbar button on the form (or run it on exit
from one of the fields)

Sub EnvelopeInForm()
Dim i As Integer
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

See http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Lisa@aig wrote:
Thanks for your help. Unfortunately, I am not familiar with VBA
coding. I looked at the code you suggested, but it is all Greek to
me. I'm sure I could figure it out in time, but time is not available
at this point.

"Graham Mayor" wrote:

You will have to unlock the template - the basic code required is
similar to that at
http://word.mvps.org/FAQs/MacrosVBA/...ProtectDoc.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Lisa@aig wrote:
I have a protected letter that allows fields to be filled in.
However, when trying to print envelopes, the option is ghosted. What
rights need to be changed to allow printing of envelopes?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer selection option in envelopes and labels within word. MicroComputerAnalyst Microsoft Word Help 2 June 16th 23 07:50 PM
Printing envelopes using Envelopes and Lables option RGilbert Microsoft Word Help 2 March 6th 07 06:22 AM
Envelopes and Protected Forms Jason Roberts Microsoft Word Help 4 August 19th 05 03:54 PM
Creating envelopes in a protected document Tpeila Microsoft Word Help 3 July 22nd 05 06:14 PM
Option buttons don't work when word document is protected Valerie Tables 1 May 9th 05 06:41 PM


All times are GMT +1. The time now is 08:38 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"