Master document misbehaviour

R

rgutter

Is there any way to stop Word 2000 from appending a new page section
break at the end of subdocuments?

The Master Document ends up with continuous section breaks between the
subdocuments, which I can understand. But it actually adds new page
section breaks at the end of the source documents!

It insists on doing so even when I add them as read-only:

Sub CreateMasterDocument(strBaseFileName As String, _
strPath As String, _
intPages As Integer)

Dim oDoc As Document
Dim iPage As Integer

Set oDoc = Documents.Add
oDoc.Activate
ActiveWindow.ActivePane.View.Type = wdMasterView

ChangeFileOpenDirectory strPath
For iPage = 1 To intPages
Selection.Range.Subdocuments.AddFromFile _
Name:=strBaseFileName + "-" + Format(iPage, "0000") _
+ ".doc", ReadOnly:=True
Next iPage

ActiveDocument.SaveAs _
FileName:=strBaseFileName + "-0000.doc", _
FileFormat:=wdFormatDocument

ActiveDocument.Close
Set oDoc = Nothing

End Sub


Any suggestions?
 
R

rgutter

Thanks for your response. I'm aware that many experts eschew Master
Documents, and I can see why. I think I can get by with INCLUDEFILEs in
my case anyways - a lot less problematic.

I have around 600 pages, each around 250Kb (there are dozens of GIFs in
each page), so I'd end up with a 150Mb document for printing. Do you
have a feeling for whether Word is likely able to handle this?
 
C

Charles Kenyon

Word will be much more robust if the gifs are included as linked files
rather than embedded. I've had a 10,000 page document with cross-references
and a Table of Contents that was handled well.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
R

rgutter

Thanks, Charles. I'm just a bit leary of my client's reaction (or the
print shop's) if I produce a final deliverable that consists of a
single Word document and 24,000 support files. But if I have to...
 
C

Charles Kenyon

Well, then on a copy of your final document, run a macro to convert the
linked files to embedded ones. You'll end up with one big file.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top