Originally Posted by
Frosty
2. Easiest way to "lose" the trailing page break... great question. The answer is conceptual (especially since I don't have any code to look at). You have a function which returns your activity range, for the purposes of doing something (.cut, .copy, rngInsertWhereInNewDoc.FormattedText = rngActivity.FormattedText), right?
That is where you should adjust it. Return the range you actually want to use from within the function that has that "job." If you've encapsulated properly... nothing else should really matter too much.
So as for what to do with the trailing page break... you don't really need to delete it, since you don't really care about the source document (or the copy of the source document)... you just need a way of telling your loop to skip any page breaks it finds... which you do by adjusting the new search range.
Changing a 1 character jump to a 2 character jump (or whatever is necessary) shouldn't be too hard, right?