How to split one document into two separate documents?

D

Damon

I am working with very large Word 2003 Documents and am hoping that there is
a method (maybe macro) of splitting the final document in two (e.g. From one
‘LogReport’ document I will be left with one ‘Log’ document and one ‘Report’
document). The pages I require for the ‘Log’ document are intertwined with
those for the ‘Report’ document.

Unfortunately I can not have these documents split at the start due to the
way each section compliments each other whilst engineers are conducting the
required testing. I am not looking to view two sections of one document
(split screen editing).

Many Thanks,

Damon
 
J

Jean-Guy Marcil

Damon was telling us:
Damon nous racontait que :
I am working with very large Word 2003 Documents and am hoping that
there is a method (maybe macro) of splitting the final document in
two (e.g. From one 'LogReport' document I will be left with one 'Log'
document and one 'Report' document). The pages I require for the
'Log' document are intertwined with those for the 'Report' document.
..
Without knowing how to tell the macro how to differentiate a log page from a
report page, this will be difficult at best...

Can you tell us a bit more on that?


--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
D

Damon

Jean-Guy Marcil (and others)

I am open to suggestions on how to differentiate between the 'Log'
pages and the 'Report' pages. I could set each page with different
Headings, Styles or Unique Text String and base a suggested macro
around this! Which one do you think is best? My knowledge of macros is
not too extensive!

At the moment, my document is using 'Headings' in a manner which is
easy to follow when using the Document Map. Therefore both Log and
Report pages appear on the Document Map and currently use the same
spread of Heading numbers.

Hope this helps!

Thanks.
 
J

Jean-Guy Marcil

Damon was telling us:
Damon nous racontait que :
Jean-Guy Marcil (and others)

I am open to suggestions on how to differentiate between the 'Log'
pages and the 'Report' pages. I could set each page with different
Headings, Styles or Unique Text String and base a suggested macro
around this! Which one do you think is best? My knowledge of macros is
not too extensive!

At the moment, my document is using 'Headings' in a manner which is
easy to follow when using the Document Map. Therefore both Log and
Report pages appear on the Document Map and currently use the same
spread of Heading numbers.

That would be a fairly easy way to go.

Set up two different numbered list (See
http://www.shaunakelly.com/word/numbering/OutlineNumbering.html for info on
how to do it right, of course, do not use Built in styles like Heading 1 as
you will need two independent numbering schemes.)

Inform users that whenever they start a Log or a Report section, they must
use the Log1 or Report1 style.
Later, when de-assembling the document, go to the first paragraph and check
if it is Log1 or Report1.
Let's say it is Log1, then create a range from that paragraph until you get
to the next Report1 paragraph. Insert a copy of this range in the Log
document.
Collapse the range and select the text until you get to the next Log1 style,
Insert the current range in the Report document and repeat until you reach
the end of the document.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
A

Al

I am open to suggestions on how to differentiate between the 'Log'
pages and the 'Report' pages. I could set each page with different
Headings, Styles or Unique Text String and base a suggested macro
around this! Which one do you think is best? My knowledge of macros is
not too extensive!

At the moment, my document is using 'Headings' in a manner which is
easy to follow when using the Document Map. Therefore both Log and
Report pages appear on the Document Map and currently use the same
spread of Heading numbers.

Set all Log Pages to Font Times Roman and all Report Pages to Helvetica.
Do a Find All or a Find Replace and delete all TR. Save document as
Report. Open original and delete all Helvetica and save as Log.
 
J

Jean-Guy Marcil

Al was telling us:
Al nous racontait que :
Set all Log Pages to Font Times Roman and all Report Pages to
Helvetica. Do a Find All or a Find Replace and delete all TR. Save
document as Report. Open original and delete all Helvetica and save
as Log.

Crafty!

But remember to train your users to use styles correctly!

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
D

Damon

Jean-Guy and Al,

Thanks to you both for the suggestions. Have been able to use a mixture
of both to create and disassemble a rough document. This has resulted
in a much quicker method of disassembly and for that I am very
grateful. I have however encountered another slight problem upon
disassembly in that tables remain after I have Replaced (effectively
deleted) the font in those tables (leaving me with a blank table). This
is an inconvenience as the majority of 'Log' results are recorded
in tables.

My question is therefore - "is there a way that you can search and
replace for Tables so that these will not only be emptied of text but
completely deleted?"

Now that I have a different insight I have been looking but am hitting
a wall again. I could obviously manually 'cut' these tables but
there are a lot and was again hoping for a quicker method.

Thanks again fellas

Damon
 
D

Daren

I'm working on a project where split one document into many (from around 20
master documents, we produce 240 or so). The route we chose was to create a
specific title style which is used to delineate the document boundaries. The
basic algorithm is as follows:

Find Occurence of Style
Find next occurence of Style or End of Doc
Select the range (include first title, exclude second)
Copy/Cut selected range to clipboard
Add a new document to the Documents collection
Paste clipboard into new document
Save document
Rinse and repeat until the end of the original document is reached.

Hope that helps.
 

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