Re: Scripting MS Word "Insert Subdocument"
Re: Scripting MS Word "Insert Subdocument"
- Subject: Re: Scripting MS Word "Insert Subdocument"
- From: Barbara Bolduc <email@hidden>
- Date: Mon, 18 Oct 2004 16:46:07 -0400
Thanks for the reply. Actually, I looked at the 2004 reference because it was the only thing I could find. I assumed that it might give me at least something to go on, but there was nothing about inserting subdocuments.
Regarding your answer, the merge command is explained as "an expression that references a master document that contains subdocuments to be merged," implying that the subdocuments have already been inserted. The split document command is also described as working on "existing" subdocuments. At this point, there are no subdocuments—the command I am looking is to
create the subdocuments using the
insert subdocuments command, so I don't have to go through the same repetitive steps over and over again. I typically have around 100 existing documents to be inserted into a master document for multiple projects. So anyway, here's the question again since I guess I didn't explain it well the first time.
Does anyone know if you can use Applescript to
insert existing documents into a master document, thereby creating subdocuments, in MS Word X (or later—I can upgrade). The manual command is "insert subdocument" on the Master Toolbar, and "import subdocument" on the menu. They seem to do the same thing.
Again, thanks for any help!
On Oct 18, 2004, at 4:06 PM, Paul Berkowitz wrote:
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
Thanks! ;-)
Barbara Bolduc
Project Coordinator
Shook Kelley, Inc.
2151 Hawkins Street
Suite 400
Charlotte, NC 28203
T704.377.0661x180
F704.377.0953
+
Shook Kelley, Inc. LA
850 South Robertson Boulevard
Suite 1
Los Angeles, CA 90035
T310.659.9482
F310.659.9528
www.shookkelley.com
_______________________________________________
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