次の方法で共有


LetterContent.RecipientAddress Property

Word Developer Reference

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

Syntax

expression.RecipientAddress

expression   An expression that returns a LetterContent object.

Example

This example creates a new LetterContent object, sets several properties (including the recipient address), and then runs the Letter Wizard by using the RunLetterWizard method.

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

See Also