B
Bud Veltman
I have a macro that uses pulls data from an external file. I use several
with/end with statements to extract the data that I need. The output is many
pages of data that is one line of data followed by a line of dashes as shown
below.
0|01001111|01|L1_SD_01_00_1111|SD -GND FL -ELEVATOR LOBBY
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
The first line of the above is then repeated, but with different data and
followed by another line of dashes. The output may be 70 - 150 pages,
depending on the complexity of the data file.
My problem is that many of the pages will break after the data line, but
before the line of dashes. This is very important as errors on the data line
are hand written on the dashes so that the imported file can be corrected at
its source.
How do I ensure that the page only breaks after a line of dashes or maybe
group the output of data and dashes so as to not allow a break between the
two lines?
Any assistance would be greatly appreciated.
Bud Veltman
(e-mail address removed)
with/end with statements to extract the data that I need. The output is many
pages of data that is one line of data followed by a line of dashes as shown
below.
0|01001111|01|L1_SD_01_00_1111|SD -GND FL -ELEVATOR LOBBY
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
The first line of the above is then repeated, but with different data and
followed by another line of dashes. The output may be 70 - 150 pages,
depending on the complexity of the data file.
My problem is that many of the pages will break after the data line, but
before the line of dashes. This is very important as errors on the data line
are hand written on the dashes so that the imported file can be corrected at
its source.
How do I ensure that the page only breaks after a line of dashes or maybe
group the output of data and dashes so as to not allow a break between the
two lines?
Any assistance would be greatly appreciated.
Bud Veltman
(e-mail address removed)