I have a file which can have anywhere between 5 and 500 rows to print. On the top of each page there should be a header but depending on the data below it the header will change thus I cant use the generic header function. I have some coding in that will hide rows if they have no data in them which means that the print ranges change a lot. My question is, is there some coding that I can use to place one of the 3 header options at the top of each page depending on where the page breaks are? To add an extra layer of complexity the sheet is entirely made up of formulas so putting in a formula for the header will erase formulas that are there and could cause issues for the next time any code is ran.
thanks in advance
thanks in advance