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. :-)
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.
Aaron Sills
>
> On 11/8/00 19:07, Allen Watson wrote:
>
>> Visual Basic. Oooo! That's probably the best way there is to script Word.
>> Wish I had enough reason to learn it.
>
> Yes, the AppleScript interface for Word will let you do quite a bit, but if
> you really want to make Word jump through hoops, VBA is the best way to go.
>
> FWIW, while I've done quite a bit of VBA programming in Excel, I've done
> very little in Word. What I did in the script was modified from an example
> in the VBA Help. The most part of the work was figuring out the AS I needed
> to extract the necessary information from Entourage, then putting that
> together so it formed a Visual Basic script that Word could understand.
>
> For those who have made other suggestions of things they'd like to see, I'll
> keep working on learning a bit more about Word's VBA in the hopes that I can
> put together some solutions that will be truly useful. No promises, though!
>
> George
>
> --
> George Clark - [EMAIL PROTECTED]
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>