How do I retain envelope format settings?
I'm having trouble retaining my envelope format settings. When I run the
macro it does not retain the formating from the ('set the envelope style)
section.
Sub printenvelope()
'instantiate the envelope
Dim mydoc As Document
Dim myenvelope As Envelope
Set mydoc = ActiveDocument
Set myenvelope = mydoc.Envelope
'set the envelope style
With myenvelope.AddressStyle
.Font.Name = "Arial"
.Font.Size = 12
.ParagraphFormat.Space1
.ParagraphFormat.LineUnitAfter = 0
.ParagraphFormat.LineUnitBefore = 0
End With
'print the envelope out
myenvelope.PrintOut extractaddress:=True, _
omitreturnaddress:=True, _
Size:="size 10", _
AddressFromLeft:=InchesToPoints(3), _
AddressFromTop:=InchesToPoints(1.5)
End Sub
Russ - 30 Oct 2007 07:21 GMT
One response is in the .general forum. Try not to cross post separately. You
can address more than one forum at a time, if you use a comma between each
forum address. Then the question and different forum answers will be tied
together and people won't be wasting their time giving similar answers.
> How do I retain envelope format settings?
>
[quoted text clipped - 31 lines]
>
> End Sub

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID