1, I abhor "empty" spaces. I never have "empty" spaces because I use Styles. My paragraph styles have the space between paragraphs built in. Which is one of the main purposes of styles. I strongly recommend you learn how to use them.
2. You state "in most cases" there are 7 lines. Again, if there are no "empty spaces", by using styles, this [roblem is solved. Hard coding the number of "empty spaces" is a problem, because what are you going to do if it is 5, or 6.
3. macropod's code, does do the trick, because it essentially creates a range from the start of the text to the pre-defined bookmark "\page".
4. Could you clarify if the page break, prior to "Date Generated" is hard coded (that is, was it created by a Ctrl-Enter, or a Insert > Break > Page Break? Or is it on a different page BECAUSE of the insertion of the "empty spaces" Clarification of this point will make it much easier to create code that will solve this issue.
5. RE: cut and paste a line. Do you mean a real line (the text that runs across ONE line), or do you mean one paragraph? By that I mean, what if the paragraph the "line" is part of extends to TWO lines? Would you want the whole paragraph moved? I am assuming so, but maybe the "line" will always be a short paragraph, and never extend to more than one line. Do you the ability to search for the line, or simply move a line that the cursor is in?
If you clarify these points, a solution can be done fairly easily.
Bottom line? These are
design issues - as usual. Please post and I will respond ASAP.
Gerry
See my
Paintings and Sculpture