On 11/13/00 05:17, Aaron Sills wrote:
> George, I have taken out the check for zip code in your script to allow for
> addresses down here (New Zealand) that don't have them. It still seems to
> work. :-)
Yeah, that was pretty silly of me to include that check. It's fixed in
another version that I'm working on.
> Where you have the bit -
>
> tell application "Microsoft Word"
> activate
> try
> get document 1
>
> How could I get it to open an existing envelope template? I tried to write
> - get MyEnvelope
> But that didn't work. Would I have to use the whole address of the file?
>
> Any thoughts would be appreciated.
AFAIK, there is no actual "envelope template" that comes with Word. You
could create one and open that file (yes, you'd need the complete path), but
as long as you use the PrintOut method that's in the VBA script, that will
take care of adding an envelope to the front document if needed.
If you really want this to be an envelope before anything else is done,
another option is to just create a new document when Word opens, then add
this line to the beginning of the VBA code:
Dialogs(wdToolsEnvelopesAndLabels).Execute
(at least, if I recall correctly, that's the correct referenece. Check
Word's help for the proper item to go inside the parentheses.)
That applies the settings of the Envelopes/Labels dialog to the current
document, which will insert an envelope if that's the last thing you did in
that dialog. Of course, if the last thing you did was labels, that's what
you'll get.
George
--
George Clark - [EMAIL PROTECTED]
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>