RecipientName Property

Applies To

LetterContent object.

Description

Returns or sets the name of the person who'll be receiving the letter created by the Letter Wizard. Read/write String.

See Also

RecipientAddress property, SenderName property.

Example

This example displays the salutation and recipient name for the active document.

MsgBox ActiveDocument.GetLetterContent.Salutation & _
    Space(1) & ActiveDocument.GetLetterContent.RecipientName
This example creates a new LetterContent object, sets several properties (including the recipient name), and then runs the Letter Wizard by using the RunLetterWizard method.

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