Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.45 KB

Word.Envelope.ReturnAddressFromTop.md

File metadata and controls

54 lines (34 loc) · 1.45 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Envelope.ReturnAddressFromTop property (Word)
vbawd10.chm152567824
vbawd10.chm152567824
Word.Envelope.ReturnAddressFromTop
14738afb-17ab-c1d3-8de5-4fb7a34fa478
06/08/2017
medium

Envelope.ReturnAddressFromTop property (Word)

Returns or sets the distance (in points) between the top edge of the envelope and the return address. Read/write Single.

Syntax

expression. ReturnAddressFromTop

expression An expression that returns an 'Envelope' object.

Remarks

If you use this property before an envelope has been added to the document, an error occurs.

Example

This example creates a new document and adds an envelope with a predefined delivery address and return address. The example then sets the distance between the top edge of the envelope and the return address to 0.5 inch and sets the distance between the left edge of the envelope and the return address to 0.75 inch.

addr = "Eric Lang" & vbCr & "123 Main" _ 
 & vbCr & "Seattle, WA 98040" 
retaddr = "Nate Sun" & vbCr & "123 Main" _ 
 & vbCr & "Bellevue, WA 98004" 
With Documents.Add.Envelope 
 .Insert Address:=addr, ReturnAddress:=retaddr 
 .ReturnAddressFromTop = InchesToPoints(0.5) 
 .ReturnAddressFromLeft = InchesToPoints(0.75) 
End With

See also

Envelope Object

[!includeSupport and feedback]