A
Andrew
Can someone nudge me in the right direction with manipulating text within a
range? I am searching for text in one document and building a range array.
So far so good. Then I type out the entire array to a new document. Each
element in the array will have more than one paragraph. The first paragraph
of each element needs to have a different sytle than the rest of the
paragraphs in that range element. (Of course, I don't want to affect the
source document.)
There are so many ways to do this, none of which I seem to be able to code.
I'd be happy either:
(1) extracting the first paragraph to a separate range (or selection?)
variable and applying the style to that range variable; or
(2) simply applying the style to paragraphs(1) of the range element before I
type it to the target document; or
I can't even seem to copy the contents of the ranges to a new variable
without continuing ponting to the original text. There's obviously some
fundamental gaps in my knowledge of ranges.
Thanks for your help!
range? I am searching for text in one document and building a range array.
So far so good. Then I type out the entire array to a new document. Each
element in the array will have more than one paragraph. The first paragraph
of each element needs to have a different sytle than the rest of the
paragraphs in that range element. (Of course, I don't want to affect the
source document.)
There are so many ways to do this, none of which I seem to be able to code.
I'd be happy either:
(1) extracting the first paragraph to a separate range (or selection?)
variable and applying the style to that range variable; or
(2) simply applying the style to paragraphs(1) of the range element before I
type it to the target document; or
I can't even seem to copy the contents of the ranges to a new variable
without continuing ponting to the original text. There's obviously some
fundamental gaps in my knowledge of ranges.
Thanks for your help!