J
jkingBoise
I have this macro that prints an address onto an envelope that I have
selected in a letter. It doesn't work because the macro is printing
only the first line of the address. In the example below, it prints
"Collection Department" instead of the entire address which is:
Collections Department
Bruneel Tire Factory
5304 Chinden Blvd
Boise, ID
83714
How can I make it work. I really need this macro.
Thanks.
John King
(e-mail address removed)
Sub Macro1()
'
' Macro1 Macro
'
ActivePrinter = "HP Officejet 7400 series"
ActiveDocument.Envelope.PrintOut ExtractAddress:=False,
OmitReturnAddress _
:=False, Height:=InchesToPoints(4.13), Width:=InchesToPoints
(9.5), _
Address:="Collections Department",
AutoText:="ToolsCreateLabels3", _
ReturnAddress:="", ReturnAutoText:="ToolsCreateLabels4",
AddressFromLeft _
:=wdAutoPosition, AddressFromTop:=wdAutoPosition,
ReturnAddressFromLeft:= _
wdAutoPosition, ReturnAddressFromTop:=wdAutoPosition,
DefaultOrientation _
:=wdCenterLandscape, DefaultFaceUp:=False,
PrintEPostage:=False
End Sub
selected in a letter. It doesn't work because the macro is printing
only the first line of the address. In the example below, it prints
"Collection Department" instead of the entire address which is:
Collections Department
Bruneel Tire Factory
5304 Chinden Blvd
Boise, ID
83714
How can I make it work. I really need this macro.
Thanks.
John King
(e-mail address removed)
Sub Macro1()
'
' Macro1 Macro
'
ActivePrinter = "HP Officejet 7400 series"
ActiveDocument.Envelope.PrintOut ExtractAddress:=False,
OmitReturnAddress _
:=False, Height:=InchesToPoints(4.13), Width:=InchesToPoints
(9.5), _
Address:="Collections Department",
AutoText:="ToolsCreateLabels3", _
ReturnAddress:="", ReturnAutoText:="ToolsCreateLabels4",
AddressFromLeft _
:=wdAutoPosition, AddressFromTop:=wdAutoPosition,
ReturnAddressFromLeft:= _
wdAutoPosition, ReturnAddressFromTop:=wdAutoPosition,
DefaultOrientation _
:=wdCenterLandscape, DefaultFaceUp:=False,
PrintEPostage:=False
End Sub