次の方法で共有


LetterContent.Subject Property

Word Developer Reference

Returns or sets the subject text of a letter created by the Letter Wizard. Read/write String.

Syntax

expression.Subject

expression   Required. A variable that represents a LetterContent object.

Example

This example displays the subject of a letter created by the Letter Wizard, unless the subject is an empty string.

Visual Basic for Applications
  If ActiveDocument.GetLetterContent.Subject <> "" Then
    MsgBox ActiveDocument.GetLetterContent.Subject
End If

See Also