返回或设置信封上边距与收信人地址之间的距离(以磅为单位)。Single 类型,可读写。
注意 如果在将信封添至文档前使用此属性将出现错误。
本示例新建一篇文档,并将有预定义收信人地址和寄信人地址的信封添至文档中。然后将信封上边距和收信人地址的之间的距离设置为 1.75 英寸,并将信封左边距和收信人地址的距离设置为 3.75 英寸。
Dim strAddress As String Dim strReturn As String
strAddress = "Michael Bunney" & vbCr & "123 Skye St." & vbCr _ & "Our Town, WA 98040" strReturn = "Kate Dresen" & vbCr & "123 Main" & vbCr _ & "Other Town, WA 98040" With Documents.Add.Envelope .Insert Address:=strAddress, ReturnAddress:=strReturn .AddressFromTop = InchesToPoints(1.75) .AddressFromLeft = InchesToPoints(3.75) End With ActiveDocument.ActiveWindow.View.Type = wdPrintView