DefaultPrintBarCode Property

Microsoft Word Visual Basic

DefaultPrintBarCode Property

       

True if a POSTNET bar code is added to envelopes or mailing labels by default. Read/write Boolean.

Note   For U.S. mail only. For envelopes, this property must be set to True before the DefaultPrintFIMA property is set.

Example

This example sets the default envelope settings to include a bar code and a Facing Identification Mark (FIM-A).

With ActiveDocument.Envelope
    .DefaultPrintBarCode = True
    .DefaultPrintFIMA = True
End With

This example displays the bar code status in a message box.

If ActiveDocument.Envelope.DefaultPrintBarCode = False Then
    MsgBox "A bar code is not included by default"
Else
    MsgBox "A bar code is included by default"
End If