I have a bit of code that imports data into a single spreadsheet from text file. The imported data is broken into sections of rows according to the data type.
As an example, data is layed out as follows once text file is imported:
Row 01: Data related to Apples
Row 02: Data related to Apples
Row 03: Data related to Apples
Row 04: Data related to Apples
Row 05: Blank Row
Row 06: Data related to Rasberries
Row 07: Data related to Rasberries
Row 08: Data related to Rasberries
Row 09: Data related to Rasberries
Row 10: Blank Row
Row 11: Data related to Oranges
Row 12: Data related to Oranges
Row 13: Data related to Oranges
If, for example, each page is able to hold only 11 rows of data, the data related to oranges is printed on two separate pages (row 11 is on page 1; rows 12 & 13 are on page 2).
Is there any code I could use that would insert a manual page break at first blank row before the next page break (in this case row 11)? Thank you in advance for any comments.
Bookmarks