Class Envelope (Word VBA)

The class Envelope represents an envelope attached to a document.

Set

To use a Envelope class variable it first needs to be instantiated, for example

Dim env as Envelope
Set env = ActiveDocument.Envelope

Envelope class variables can be set using the Document.Envelope procedure.

Themes

Some procedures in this class have been grouped together in themes and are described on separate theme pages

Print with its procedures DefaultPrintFIMA and PrintOut
Name with its procedures RecipientNamefromLeft, RecipientNamefromTop, SenderNamefromLeft and SenderNamefromTop

Methods

Other Methods

Insert - Inserts an envelope as a separate section at the beginning of the specified document.

ActiveDocument.Envelope.Insert

Properties

Address returns the envelope delivery address as a Range object.

Dim rngAddress As Range
Set rngAddress = ActiveDocument.Envelope.Address

AddressFromLeft returns or sets the distance (in points) between the left edge of the envelope and the delivery address.

ActiveDocument.Envelope.AddressFromLeft =

AddressFromTop returns or sets the distance (in points) between the top edge of the envelope and the delivery address.

ActiveDocument.Envelope.AddressFromTop =

AddressStyle returns a Style object that represents the delivery address style for the envelope.

Dim styAddressStyle As Style
Set styAddressStyle = ActiveDocument.Envelope.AddressStyle

DefaultFaceUp true if envelopes are fed face up by default.

ActiveDocument.Envelope.DefaultFaceUp = True

DefaultHeight returns or sets the default envelope height, in points.

ActiveDocument.Envelope.DefaultHeight =

DefaultOmitReturnAddress true if the return address is omitted from envelopes by default.

ActiveDocument.Envelope.DefaultOmitReturnAddress = True

DefaultOrientation returns or sets the default orientation for feeding envelopes.

ActiveDocument.Envelope.DefaultOrientation = wdCenterClockwise

DefaultSize returns or sets the default envelope size.

ActiveDocument.Envelope.DefaultSize =

DefaultWidth returns or sets the default envelope width, in points.

ActiveDocument.Envelope.DefaultWidth =

FeedSource returns or sets the paper tray for the envelope.

ActiveDocument.Envelope.FeedSource = wdPrinterAutomaticSheetFeed

Parent returns an object that represents the parent object of the specified Envelope object.

Dim objParent As Object
Set objParent = ActiveDocument.Envelope.Parent

RecipientPostalfromLeft returns or sets a Single that represents the position, measured in points, of the recipient's postal code from the left edge of the envelope.

ActiveDocument.Envelope.RecipientPostalfromLeft =

RecipientPostalfromTop returns or sets a Single that represents the position, measured in points, of the recipient's postal code from the top edge of the envelope.

ActiveDocument.Envelope.RecipientPostalfromTop =

ReturnAddress returns a Range object that represents the envelope return address.

Dim rngReturnAddress As Range
Set rngReturnAddress = ActiveDocument.Envelope.ReturnAddress

ReturnAddressFromLeft returns or sets the distance (in points) between the left edge of the envelope and the return address.

ActiveDocument.Envelope.ReturnAddressFromLeft =

ReturnAddressFromTop returns or sets the distance (in points) between the top edge of the envelope and the return address.

ActiveDocument.Envelope.ReturnAddressFromTop =

ReturnAddressStyle returns a Style object that represents the return address style for the envelope.

Dim styReturnAddressStyle As Style
Set styReturnAddressStyle = ActiveDocument.Envelope.ReturnAddressStyle

SenderPostalfromLeft returns or sets a Single that represents the position, measured in points, of the sender's postal code from the left edge of the envelope.

ActiveDocument.Envelope.SenderPostalfromLeft =

SenderPostalfromTop returns or sets a Single that represents the position, measured in points, of the sender's postal code from the top edge of the envelope.

ActiveDocument.Envelope.SenderPostalfromTop =

Vertical true vertically orients text on Asian envelopes.

ActiveDocument.Envelope.Vertical = True