Re: Scripting MS Word "Insert Subdocument"
Re: Scripting MS Word "Insert Subdocument"
- Subject: Re: Scripting MS Word "Insert Subdocument"
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 18 Oct 2004 13:06:57 -0700
On 10/18/04 12:43 PM, "Barbara Bolduc" <email@hidden>
wrote:
> I'm new to the list (and to AppleScript), so please forgive if I am
> asking a question that has already been answered. It seems that the
> only search that currently can be done on this list's archives is
> through a search engine, and I have not been able to find the answer
> that way.
>
> Is there any way to create a script to insert subdocuments in an MS
> Word master document? (OS X 10.3.5, MS Word v.X ser. rel. 1) I am
> trying to create a master document by inserting over 100 subdocuments
> which already exist, yet I can find no indication that this particular
> event is scriptable, although there is much mention of master and
> subdocuments in the Word 2004 AppleScript Reference. Please, please
> tell me that the powers that be did not leave this function out, when
> there are a dozen scripts you can do on Master Documents that don't
> save nearly as much time as this particular one would. Thanks for any
> help you can provide!
If you're using Word X, the 2004 Reference does you no good at all. You'll
have to upgrade to Word 2004 first. Then you'll be able to use
merge subdocuments
command in the Word Suite. There's also a 'split subdocument' command which
would allow you to split a document and then merge your new subdocument
between them.
In Word X, you'd be able to do the same thing using the 'do Visual Basic'
command to execute a VBA script , but you'd have to learn the VBA syntax.
That is covered pretty well in Tools/Macros/Visual Basic Editor/Help for
specifics. But you'd probably need to learn the basics with a book such as
Writing Word macros (O'Reilly). General methods for converting VBA code into
'do Visual Basic" applescript is here:
<http://word.mvps.org/MacWordNew/WordAppleScript.htm> . (Refresh twice in
Safari, or use IE.)
Or upgrade to Office 2004 to get the completely new 2004 dictionary.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden