D
djcamo
Hi there,
I have a document that consists of a number of reports all formatted
in a similar way. Each report contains a block of text in a particular
style. What I am trying to do is find each block of text of that
particular style and add it to a collection to be used elsewhere.
I initially used soft returns for this block of text so that it was
one paragraph as far as Word was concerned and worked ok by scrolling
thru each paragraph and adding to the collection if it matched the
style.
Now this is not possible as the block of text requires bullets etc
which use hard returns.
What I want to do is to find the first line of this block of text, add
it to a temp string, check the next line and if it is the same style
append it to the temp string, else if it is not the same style then
take the temp string and add it to the collection, and then go to the
next block.
I hope this makes sense.
Cheers
DC
I have a document that consists of a number of reports all formatted
in a similar way. Each report contains a block of text in a particular
style. What I am trying to do is find each block of text of that
particular style and add it to a collection to be used elsewhere.
I initially used soft returns for this block of text so that it was
one paragraph as far as Word was concerned and worked ok by scrolling
thru each paragraph and adding to the collection if it matched the
style.
Now this is not possible as the block of text requires bullets etc
which use hard returns.
What I want to do is to find the first line of this block of text, add
it to a temp string, check the next line and if it is the same style
append it to the temp string, else if it is not the same style then
take the temp string and add it to the collection, and then go to the
next block.
I hope this makes sense.
Cheers
DC