Subject Property

Applies To

LetterContent object, Mailer object, RoutingSlip object.

Description

RoutingSlip object: Returns or sets the subject text of mail messages used to route a document. Read/write String.

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

Mailer object: Returns or sets the mail message subject line. Available only on the Macintosh and only if the PowerTalk mail system extension is installed. Read/write String.

See Also

GetLetterContent method, Message property, SetLetterContent method.

Example

This example sets the subject and message text for the routing slip associated with Month End.doc.

If Documents("Month End.doc").HasRoutingSlip = True Then
    With Documents("Month End.doc").RoutingSlip
        .Subject = "End of month report"
        .Message = "I need your response on this."
    End With
End If
This example displays the subject of a letter created by the Letter Wizard, unless the subject is an empty string.

If ActiveDocument.GetLetterContent.Subject <> "" Then
    MsgBox ActiveDocument.GetLetterContent.Subject
End If
This example sets the subject for the mailer associated with the active document.

If ActiveDocument.HasMailer = True Then
    ActiveDocument.Mailer.Subject = "Here is the document"
End If