I have tried to do this...but outside my skill range...hope someone can help.
On a worksheet containing about 20 columns
some have functions and macros
I would like this vba created so that when information contained within a race (what i call a subset) runs into the next page (for printing), rows are inserted to carry that subset to the next page, so when printed it is easier to read.
This data is in column B
Down the page. the cells read like this...
race 1 ...... (there is more data in this cell but always begins with race #)
tno (each set begins with race 1) (each race is a subset)
1
2
3
4
5
race 2 (each race is a subset)
tno
1
2
3
race 3 (each race is a subset)
tno
1
2
3
4
5
6
7
race 1 (a new set begins with race 1) (each race is a subset)
1
2
3
4
5
and so on.
after approx 8 or 9 of these races (subsets), a new race 1 (new set) is introduced, and continues in the same way until the next race 1,
There can be up to 10 sets (each containing between 6 and 10 races (subsets))
I have used Page Setup to create 56 lines on each page.
I need 2 things to happen.
(1) when information in the same race (subset) runs into the next printed page, (56 row pages ) - I would like that particular subset (from the 'race..#' cell) to move to the next page (insert rows upto the next set of 56 lines)
So a page when printed consists only of complete subsets, with no splits/carryovers onto the next page.
(2) When a new set ( "race 1 ...) begins on the same page as the previous subset (eg race 8 of previous subset) I would like rows to be inserted so that the set (race 1) begins on a new page.
So it would look like this....
race 8
tno
1
2
3
(rows inserted here)
---------------(end of page)
race 1
tno
1
2
I hope this make sense. Thanks in advance.
On a worksheet containing about 20 columns
some have functions and macros
I would like this vba created so that when information contained within a race (what i call a subset) runs into the next page (for printing), rows are inserted to carry that subset to the next page, so when printed it is easier to read.
This data is in column B
Down the page. the cells read like this...
race 1 ...... (there is more data in this cell but always begins with race #)
tno (each set begins with race 1) (each race is a subset)
1
2
3
4
5
race 2 (each race is a subset)
tno
1
2
3
race 3 (each race is a subset)
tno
1
2
3
4
5
6
7
race 1 (a new set begins with race 1) (each race is a subset)
1
2
3
4
5
and so on.
after approx 8 or 9 of these races (subsets), a new race 1 (new set) is introduced, and continues in the same way until the next race 1,
There can be up to 10 sets (each containing between 6 and 10 races (subsets))
I have used Page Setup to create 56 lines on each page.
I need 2 things to happen.
(1) when information in the same race (subset) runs into the next printed page, (56 row pages ) - I would like that particular subset (from the 'race..#' cell) to move to the next page (insert rows upto the next set of 56 lines)
So a page when printed consists only of complete subsets, with no splits/carryovers onto the next page.
(2) When a new set ( "race 1 ...) begins on the same page as the previous subset (eg race 8 of previous subset) I would like rows to be inserted so that the set (race 1) begins on a new page.
So it would look like this....
race 8
tno
1
2
3
(rows inserted here)
---------------(end of page)
race 1
tno
1
2
I hope this make sense. Thanks in advance.