Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy data between styles to a new document

Status
Not open for further replies.

jakesp

Programmer
Mar 31, 2005
4
ZA
I need to split up a large document according to a style that it finds, then save that portion of the document into a new file with the with actual text of the style that it found as the name of the file. I have include an example to help what I mean.

********* Large document ***********

HEADING 1
this is some text in the first part of the document

HEADING 2
this is some text in the second part of the document

HEADING 2
this is some text in the third part of the document

********* End of Large document ***********


The above needs to end up as follows


********* Document 1 ***********

HEADING 1
this is some text in the first part of the document

********* Document 2 ***********

HEADING 2
this is some text in the second part of the document

********* Document 3 ***********

HEADING 2
this is some text in the third part of the document


Sorry its a bit of a tongue twister to explain what I mean
 
Hi

I have trie the example but it does not work. Do you know of others?

Download the file and give it a bash.... nothing

Regards
 
OK, what you need is to be more specific.

"Part" of the document, is not quite good enough. What does "part" mean? You have, in your example, TWO heading 2, in different "parts". Please specify EXACTLY what defines those parts.

Depending on precisely how that is working, this should be fairly easy to do.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top