Inserting Subdoc in Master doc gives warning

G

GeertD

Hi All,
Via a macro I open an empty document (in Masterview) and
insert a number of subdocuments (between 20 and 200) into
this master document.
I have however 2 problems :
1° Most of the time I get a warning from Word "The
profile 'name of the profile' exist both in the master
and the subdocument. Do you wish to add it' Yes / Yes to
all / No / No to all (free translation of dutch). I
get this warning for every subdocument I add.
My question: can I somehow 'skip' the warning without
seeing it???
2. If I save the (whole) document, all the subdocuments
are saved in their own location (so far so good), but
Word adds a 'section break' to the end of every (sub)
document (making it 1 page longer). Any idea how I can
avoid this ???

Lots of thanks in advance

Geert D.
 
S

Shauna Kelly

Hi Geert

Before you lose everything, you might like to have a look at the following:

Why Master Documents corrupt
http://www.mvps.org/word/FAQs/General/WhyMasterDocsCorrupt.htm
and
How to recover a Master Document
http://www.mvps.org/word/FAQs/General/RecoverMasterDocs.htm

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
Melbourne, Australia


Hi All,
Via a macro I open an empty document (in Masterview) and
insert a number of subdocuments (between 20 and 200) into
this master document.
I have however 2 problems :
1° Most of the time I get a warning from Word "The
profile 'name of the profile' exist both in the master
and the subdocument. Do you wish to add it' Yes / Yes to
all / No / No to all (free translation of dutch). I
get this warning for every subdocument I add.
My question: can I somehow 'skip' the warning without
seeing it???
2. If I save the (whole) document, all the subdocuments
are saved in their own location (so far so good), but
Word adds a 'section break' to the end of every (sub)
document (making it 1 page longer). Any idea how I can
avoid this ???

Lots of thanks in advance

Geert D.
 
C

Cindy Meister -WordMVP-

Hi GeertD,

Do read the information Shauna has pointed you to...
Via a macro I open an empty document (in Masterview) and
insert a number of subdocuments (between 20 and 200) into
this master document.
I have however 2 problems :
1° Most of the time I get a warning from Word "The
profile 'name of the profile' exist both in the master
and the subdocument. Do you wish to add it' Yes / Yes to
all / No / No to all (free translation of dutch). I
get this warning for every subdocument I add.
My question: can I somehow 'skip' the warning without
seeing it???
There are some very important rules you need to follow if
the Master/Sub document feature is to have even a chance of
working correctly. One of the most important is that you
need to create a template before you start and generate each
sub document AND the master from this template. The template
should hold all the styles, numbering, etc. you want to use
in all the documents.

If you do this, then you won't get the message you report
above.

If you don't do this, then the chances that your project
will survive in one piece are slim, indeed. Unless you're
just pulling stuff together for printing, and will be
"throwing it away" afterwards. But it doesn't sound like
that's the case...

You can *try* setting DisplayAlerts to not show any alerts.
But I don't know whether this will work, or if it does,
whether you will get the expected result.
2. If I save the (whole) document, all the subdocuments
are saved in their own location (so far so good), but
Word adds a 'section break' to the end of every (sub)
document (making it 1 page longer). Any idea how I can
avoid this ???
Nope. Word needs the section break in order to maintain
sub-doc specific margins, headers, footers, columns, etc.
But you could try changing the default type of inserted
section break from "new page" to "continous" and see if that
persuades Word to insert continuous sections breaks,
instead.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan
24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

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