Class LetterContent (Word VBA)

The class LetterContent represents the elements of a letter created by the Letter Wizard.

Class Document gives access to class LetterContent.


Dim lct as LetterContent
Set lct = Dim strDateFormat As String: strDateFormat = 
Dim strPageDesign As String: strPageDesign = 
Dim strRecipientName As String: strRecipientName = 
Dim strRecipientAddress As String: strRecipientAddress = 
Dim strSalutation As String: strSalutation = 
Dim strRecipientReference As String: strRecipientReference = 
Dim strMailingInstructions As String: strMailingInstructions = 
Dim strAttentionLine As String: strAttentionLine = 
Dim strSubject As String: strSubject = 
Dim strCCList As String: strCCList = 
Dim strReturnAddress As String: strReturnAddress = 
Dim strSenderName As String: strSenderName = 
Dim strClosing As String: strClosing = 
Dim strSenderCompany As String: strSenderCompany = 
Dim strSenderJobTitle As String: strSenderJobTitle = 
Dim strSenderInitials As String: strSenderInitials = 
Dim lngEnclosureNumber As Long: lngEnclosureNumber = 
ActiveDocument.CreateLetterContent(DateFormat:=strDateFormat, IncludeHeaderFooter:=True, PageDesign:=strPageDesign, LetterStyle:=wdFullBlock, Letterhead:=True, LetterheadLocation:=wdLetterBottom, LetterheadSize:=, RecipientName:=strRecipientName, RecipientAddress:=strRecipientAddress, Salutation:=strSalutation, SalutationType:=wdSalutationBusiness, RecipientReference:=strRecipientReference, MailingInstructions:=strMailingInstructions, AttentionLine:=strAttentionLine, Subject:=strSubject, CCList:=strCCList, ReturnAddress:=strReturnAddress, SenderName:=strSenderName, Closing:=strClosing, SenderCompany:=strSenderCompany, SenderJobTitle:=strSenderJobTitle, SenderInitials:=strSenderInitials, EnclosureNumber:=lngEnclosureNumber)

Properties

AttentionLine returns or sets the attention line text for a letter created by the Letter Wizard.

CCList returns or sets the carbon copy (CC) recipients for a letter created by the Letter Wizard.

Closing returns or sets the closing text for a letter created by the Letter Wizard (for example, "Sincerely yours").

DateFormat returns or sets the date for a letter created by the Letter Wizard.

Duplicate returns a read-only LetterContent object that represents the contents of a letter created by the Letter Wizard.

EnclosureNumber returns or sets the number of enclosures for a letter created by the Letter Wizard.

IncludeHeaderFooter true if the header and footer from the page design template are included in a letter created by the Letter Wizard. Read/write Boolean. Use the PageDesign property to set the name of the template attached to a document created by the Letter Wizard.

InfoBlock associated with the Letter Wizard in Microsoft Word. Not used in the U.S. English version of Word.

Letterhead true if space is reserved for a preprinted letterhead in a letter created by the Letter Wizard. Read/write Boolean. The LetterheadSize property controls the size of the reserved letterhead space.

LetterheadLocation returns or sets the location of the preprinted letterhead in a letter created by the Letter Wizard.

LetterheadSize returns or sets the amount of space (in points) to be reserved for a preprinted letterhead in a letter created by the Letter Wizard.

LetterStyle returns or sets the layout of a letter created by the Letter Wizard.

MailingInstructions returns or sets the mailing instruction text for a letter created by the Letter Wizard (for example, "Certified Mail").

PageDesign returns or sets the name of the template attached to the document created by the Letter Wizard.

RecipientAddress returns or sets the mailing address of the person who'll be receiving the letter created by the Letter Wizard.

RecipientCode returns or sets the recipient code.

RecipientGender returns or sets the recipient's gender, if known. Not used in the U.S. English version of Microsoft Word.

RecipientName returns or sets the name of the person who'll be receiving the letter created by the Letter Wizard.

RecipientReference returns or sets the reference line (for example, "In reply to:") for a letter created by the Letter Wizard.

ReturnAddress returns or sets the return address for a letter created with the Letter Wizard.

ReturnAddressShortForm returns or sets the short form address.

Salutation returns or sets the salutation text for a letter created by the Letter Wizard.

SalutationType returns or sets the type of salutation for a letter created by the Letter Wizard.

SenderCity returns or sets the sender's city. Not used in the U.S. English version of Microsoft Word.

SenderCode returns or sets the sender code. Not used in the U.S. English version of Microsoft Word.

SenderCompany returns or sets the company name of the person creating a letter with the Letter Wizard.

SenderGender returns or sets the gender used with the salutation. Not used in the U.S. English version of Microsoft Word.

SenderInitials returns or sets the initials of the person creating a letter with the Letter Wizard.

SenderJobTitle returns or sets the job title of the person creating a letter with the Letter Wizard.

SenderName returns or sets the name of the person creating a letter with the Letter Wizard.

SenderReference not used in the U.S. English version of Microsoft Word.

Subject returns or sets the subject text of a letter created by the Letter Wizard.