LetterContent.SenderName Property (Word)

Returns or sets the name of the person creating a letter with the Letter Wizard. Read/write String .


expression. SenderName

expression An expression that returns a 'LetterContent' object.


This example creates a new LetterContent object, with the sender name and initials from the User Information tab in the Options dialog box (Tools menu). The example creates a new document and then runs the Letter Wizard by using the RunLetterWizard method.

Set myContent = New LetterContent 
With myContent 
 .SenderName = Application.UserName 
 .SenderInitials =Application.UserInitials 
End With 
Documents.Add.RunLetterWizard _ 
 LetterContent:=myContent, WizardMode:=True

See also

LetterContent Object