For the “envelope data” ( return address, recipient address and logo) to print,
the user will click the Ok button on the form below.
This is my attempt at replacing the built-in Word dialog as mentioned in Part 1.
What code will get the envelope to print?
If I use the .execute method on the dialog (as in:
set dlg = dialogs(wdDialogToolsEnvelopesAndLabels)
With dlg
.EnvOmitReturn = false
.execute
End with
Word inserts an envelope page into the document. I don’t want that. The user must
then print the page to get the envelope printed then delete the envelope page.
I want the the envelope to print when the user presses the Ok button on the form below. How can I program that?