MailingLabel.CreateNewDocumentByID method (Word)
Creates a new label document using either the default label options or ones that you specify. Returns a Document object that represents the new document.
Syntax
expression. CreateNewDocumentByID
( _LabelID_
, _Address_
, _AutoText_
, _ExtractAddress_
, _LaserTray_
, _PrintEPostageLabel_
, _Vertical_
)
expression An expression that returns a 'MailingLabel' object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
LabelID | Optional | Variant | The mailing label identification. |
Address | Optional | Variant | The text for the mailing label. |
AutoText | Optional | Variant | The name of the AutoText entry that includes the mailing label text. |
ExtractAddress | Optional | Variant | True to use the address text marked by the user-defined bookmark named "EnvelopeAddress" instead of using the Address argument. |
LaserTray | Optional | Variant | The laser printer tray. Can be one of the WdPaperTray constants. |
PrintEPostageLabel | Optional | Variant | True to print postage using an Internet e-postage vendor. |
Vertical | Optional | Variant | True formats text vertically on the label. Used for Asian-language mailing labels. |
Return value
Document
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for