LetterheadLocation Property

Microsoft Word Visual Basic

Show All

LetterheadLocation Property

       

Returns or sets the location of the preprinted letterhead in a letter created by the Letter Wizard. Read/write WdLetterheadLocation.

WdLetterheadLocation can be one of these WdLetterheadLocation constants.
wdLetterBottom
wdLetterLeft
wdLetterRight
wdLetterTop

expression.LetterheadLocation

expression   Required. An expression that returns a LetterContent object.

Example

This example creates a new LetterContent object, reserves an inch of space at the top of the page for a preprinted letterhead, and then runs the Letter Wizard by using the RunLetterWizard method.

Dim lcNew As LetterContent

Set lcNew = New LetterContent

With lcNew
    .Letterhead = True
    .LetterheadLocation = wdLetterTop
    .LetterheadSize = InchesToPoints(1)
End With

ActiveDocument.RunLetterWizard LetterContent:=lcNew