Envelope.DefaultSize Property
Word Developer Reference |
Returns or sets the default envelope size. Read/write String.
Syntax
expression.DefaultSize
expression A variable that represents a Envelope object.
Remarks
The string that is returned corresponds to the right side of the string that appears in the Envelope Size box in the Envelope Options dialog box. If you set either the DefaultHeight or DefaultWidth property, the envelope size is automatically changed to Custom Size in the Envelope Options dialog box (Tools menu) and this property returns "Custom size."
Example
This example sets the default envelope size to C4 (229 x 324 mm).
Visual Basic for Applications |
---|
|
This example asks the user whether or not they want to change the default envelope size to Size 10. If the answer is yes, the default size is changed accordingly. The UpdateDocument method changes the envelope size for the active document. If an envelope has not been added to the active document, a message box is displayed.
Visual Basic for Applications |
---|
|
See Also