RecipientName 属性

       

返回或设置由“英文信函向导”创建的信件的收件人的姓名。String 类型,可读写。

expression.RecipientName

expression   必需。该表达式返回一个 LetterContent 对象。

示例

本示例显示活动文档的称呼和收件人的名字。

MsgBox ActiveDocument.GetLetterContent.Salutation _
    & Space(1) & ActiveDocument.GetLetterContent.RecipientName

本示例创建新的 LetterContent 对象,设置它的一些属性(包括收件人的姓名),然后用 RunLetterWizard 方法运行“英文信函向导”。

Dim oLC as New LetterContent
With oLC
    .LetterStyle = wdFullBlock
    .ReturnAddress = Application.UserAddress
    .RecipientName = "Amy Anderson"
    .RecipientAddress = "123 Main" & vbCr & "Bellevue, WA  98004"
End With
Documents.Add.RunLetterWizard LetterContent:=oLC, WizardMode:=True