LetterContent.AttentionLine property (Word)

Returns or sets the attention line text for a letter created by the Letter Wizard. Read/write String.

Syntax

expression. AttentionLine

expression A variable that represents a 'LetterContent' object.

Example

This example retrieves the Letter Wizard elements from the active document. If the attention line isn't blank, the example displays the text in a message box.

If ActiveDocument.GetLetterContent.AttentionLine <> "" Then 
 MsgBox ActiveDocument.GetLetterContent.AttentionLine 
End If

This example retrieves the Letter Wizard elements from the active document, changes the attention line text, and then uses the SetLetterContent method to update the document to reflect the changes.

Dim lcTemp As LetterContent 
 
Set lcTemp = ActiveDocument.GetLetterContent 
 
lcTemp.AttentionLine = "Greetings" 
ActiveDocument.SetLetterContent LetterContent:=lcTemp

See also

LetterContent Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.