Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default 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
---------------------------------------------------

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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
---------------------------------------------------



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default 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
---------------------------------------------------

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
prevent page printout kurt Excel Programming 2 March 29th 06 09:49 AM
suppressing a footer only on the first page of a printout Paul James Excel Discussion (Misc queries) 4 January 26th 05 06:26 AM
suppressing a footer on the first page of a printout Paul James Excel Discussion (Misc queries) 1 January 25th 05 11:57 PM
suppressing a footer on the first page of a printout Paul James[_3_] Excel Programming 1 January 25th 05 11:57 PM
ActiveSheet.Printout or Page Setup? Michelle Excel Programming 0 April 23rd 04 03:55 PM


All times are GMT +1. The time now is 05:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"