![]() |
How to set the page breaks for printout
Turn on the macro recorder and insert a pagebreak manually.
Turn off the macro recorder. then look at the recorded code. That should get you started. Just be aware that if the page will only hold 66 rows (as an example), placing a pagebreak at row 70 (again as an example) will not keep it from pagebreaking at row 66. If this sounds obvious, it doesn't seem to be for many. -- Regards, Tom Ogilvy "Konrad Viltersten" wrote in message ... While one can use the interface of Excel to set up the partition of the page breaks manually, it's not a great secret that it's a major pain in the lower back. I was wondering - how can one programatically set where the page breaks will occur. Is it doable at all? After Googling the matter i realized i'm not going to find the answer there (i'm not sure what to look for in terms of search words). So, any suggestions? -- Vänligen Konrad --------------------------------------------------- Sleep - thing used by ineffective people as a substitute for coffee Ambition - a poor excuse for not having enough sence to be lazy --------------------------------------------------- |
How to set the page breaks for printout
While one can use the interface of Excel to set up the
partition of the page breaks manually, it's not a great secret that it's a major pain in the lower back. I was wondering - how can one programatically set where the page breaks will occur. Is it doable at all? After Googling the matter i realized i'm not going to find the answer there (i'm not sure what to look for in terms of search words). So, any suggestions? -- Vänligen Konrad --------------------------------------------------- Sleep - thing used by ineffective people as a substitute for coffee Ambition - a poor excuse for not having enough sence to be lazy --------------------------------------------------- |
How to set the page breaks for printout
I was wondering - how can one programatically set
where the page breaks will occur. Is it doable at all? Turn on the macro recorder and insert a pagebreak manually. Turn off the macro recorder. then look at the recorded code. That should get you started. Just be aware that if the page will only hold 66 rows (as an example), placing a pagebreak at row 70 (again as an example) will not keep it from pagebreaking at row 66. If this sounds obvious, it doesn't seem to be for many. Thanks. -- Vänligen Konrad --------------------------------------------------- Sleep - thing used by ineffective people as a substitute for coffee Ambition - a poor excuse for not having enough sence to be lazy --------------------------------------------------- |
All times are GMT +1. The time now is 07:32 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com