bmwilliams42
New Member
- Joined
- Feb 17, 2017
- Messages
- 2
Ihave a long report consisting of multi-line chunks of data separated byborders, and I have to print a new updated report every few weeks. Forreadability reasons, when it prints, the chunks of data cannot be split betweentwo pages, so if Excel puts a page break in the middle of a chunk, it has to bemoved. If it lands on a border, things are fine. The largest a chunk gets is about 10 rows, so we never have anything large enough to actually require splitting.
Presently,I have to go through and set all the page breaks manually every time wereprint. I've been trying to figure out how to automate this process, but havenot been successful.
I just need to figure out a script that will check if Excel's automatically generated pagebreak lands on a row that has a bottom border, and if not, move it up to onethat does.
All of my searches are turning up code to put a page break on every border, which is not what I need in this context, and I am not skilled enough with VBA yet to try to adapt it to my needs.
Any help would be greatly appreciated! Thank you.
Presently,I have to go through and set all the page breaks manually every time wereprint. I've been trying to figure out how to automate this process, but havenot been successful.
I just need to figure out a script that will check if Excel's automatically generated pagebreak lands on a row that has a bottom border, and if not, move it up to onethat does.
All of my searches are turning up code to put a page break on every border, which is not what I need in this context, and I am not skilled enough with VBA yet to try to adapt it to my needs.
Any help would be greatly appreciated! Thank you.