Hello,
I have looked in the forum and googled for code to do what I need with no luck. Hoping for some help. If a hpagebreak falls between 2 rows that contain data anywhere in the rows, move the hpagebreak up 1 line, if the hpagebreak still falls between 2 rows that contain data, move up another row, etc. If the hpagebreak falls between 2 rows not containing data, or 2 rows where only 1 row contains data and the other does not, then do nothing and move on to the next hpagebreak. The first snippit is an example of the hpagebreak not needing to be moved. The 2nd snippit is an example of the hpagebreak needing to be moved up 1 line. The 3rd snippit is an example of the hpagebreak nedding to be moved up 3 lines. Any help would be greatly appreciated.
I have looked in the forum and googled for code to do what I need with no luck. Hoping for some help. If a hpagebreak falls between 2 rows that contain data anywhere in the rows, move the hpagebreak up 1 line, if the hpagebreak still falls between 2 rows that contain data, move up another row, etc. If the hpagebreak falls between 2 rows not containing data, or 2 rows where only 1 row contains data and the other does not, then do nothing and move on to the next hpagebreak. The first snippit is an example of the hpagebreak not needing to be moved. The 2nd snippit is an example of the hpagebreak needing to be moved up 1 line. The 3rd snippit is an example of the hpagebreak nedding to be moved up 3 lines. Any help would be greatly appreciated.