Is it possible to generate automatic page breaks in VBA in Excel 2007 which ignore split cells (after merging adjacent cells)?
For instance, in the example below I would like the page break to be above row 51, not cutting through the middle of the merged cell A51-A53.
The code I have tried is:
workSheet.Range("A2:A" & bottomRow).PageBreak = xlPageBreakAutomatic
By only including column A in the range, I was hoping that it wouldn't generate a page break cutting through cells in this column.