Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
JLW1 JLW1 is offline
external usenet poster
 
Posts: 13
Default Is it possible to create an envelope while using a protected docum

I have a protected letter in Word 2007 (docx). When I select the Mailing tab
in the ribbon, the Envelope button is not available. Is it possible to allow
access to create an envelope when in a protected word document/
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Is it possible to create an envelope while using a protected docum

JLW1 wrote:
I have a protected letter in Word 2007 (docx). When I select the
Mailing tab in the ribbon, the Envelope button is not available. Is
it possible to allow access to create an envelope when in a protected
word document/


You'd need a macro that unprotects the document, inserts the envelope, and
reprotects the document. You can put a button on the Quick Access Toolbar to
run the macro.

Here's a fairly minimal macro to do the job. I tested it in Word 2003; I
don't have 2007 here, but it should work the same.

Sub ProtectedEnvelope()
Dim dlg As Dialog

With ActiveDocument
If .ProtectionType wdNoProtection Then
.Unprotect
End If

Set dlg = Dialogs(wdDialogToolsEnvelopesAndLabels)
dlg.DefaultTab = wdDialogToolsEnvelopesAndLabelsTabEnvelopes
dlg.Show

.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
End With
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
JLW1 JLW1 is offline
external usenet poster
 
Posts: 13
Default Is it possible to create an envelope while using a protected d

Shoot, that's what I feared. Thanks Jay!

"Jay Freedman" wrote:

JLW1 wrote:
I have a protected letter in Word 2007 (docx). When I select the
Mailing tab in the ribbon, the Envelope button is not available. Is
it possible to allow access to create an envelope when in a protected
word document/


You'd need a macro that unprotects the document, inserts the envelope, and
reprotects the document. You can put a button on the Quick Access Toolbar to
run the macro.

Here's a fairly minimal macro to do the job. I tested it in Word 2003; I
don't have 2007 here, but it should work the same.

Sub ProtectedEnvelope()
Dim dlg As Dialog

With ActiveDocument
If .ProtectionType wdNoProtection Then
.Unprotect
End If

Set dlg = Dialogs(wdDialogToolsEnvelopesAndLabels)
dlg.DefaultTab = wdDialogToolsEnvelopesAndLabelsTabEnvelopes
dlg.Show

.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
End With
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.



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
create new envelope definitions Ancient Mariner Page Layout 2 September 1st 07 06:40 AM
Envelope in protected document caclayt Microsoft Word Help 1 February 17th 07 02:25 PM
Create an envelope template Rave Dolan Microsoft Word Help 4 April 6th 06 06:05 AM
create new mailing labels with names & addres from exsisting docum Historical Society Mailmerge 2 March 11th 06 07:20 AM
HOW DO I CREATE A ENVELOPE TEMPLATE Lee Microsoft Word Help 1 March 19th 05 07:28 AM


All times are GMT +1. The time now is 06:20 PM.

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"