Envelope.SenderPostalfromTop 属性 (Word)

返回或设置 一个 值,表示的位置,以磅为单位,发件人邮政编码距信封上边缘。 读/写。

语法

expressionSenderPostalfromTop

表达 返回“Envelope”对象的表达式。

备注

该属性用于采用亚洲语言的信封。

示例

本示例检查活动文档是否为邮件合并信封,以及其格式是否为垂直类型。 如果是这样,它将定位收件人和发件人地址信息。

Sub NewEnvelopeMerge() 
 With ActiveDocument 
 If .MailMerge.MainDocumentType = wdEnvelopes Then 
 With ActiveDocument.Envelope 
 If .Vertical = True Then 
 .RecipientNamefromLeft = InchesToPoints(2.5) 
 .RecipientNamefromTop = InchesToPoints(2) 
 .RecipientPostalfromLeft = InchesToPoints(1.5) 
 .RecipientPostalfromTop = InchesToPoints(0.5) 
 .SenderNamefromLeft = InchesToPoints(0.5) 
 .SenderNamefromTop = InchesToPoints(2) 
 .SenderPostalfromLeft = InchesToPoints(0.5) 
 .SenderPostalfromTop = InchesToPoints(3) 
 End If 
 End With 
 End If 
 End With 
End Sub

另请参阅

封套对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。