Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pagebreak when range does not fit


Hi,

I have a question about always printing a group of rows on the sam
page.
I have a worksheet with data in rows 12 tot 246. The user can inser
numbers in column J. When printing, the rows with an empty column
will be hidden and only the rows with a number in column J will b
printed. Below row 246 there is an empty row and then there is a grou
of rows (248 to 269) which I would like to allways print on the sam
page.

Problem is the group of rows above can vary, because the user ca
insert or not insert numbers in column J. I know I can insert
pagebreak at row 247 so the group of rows (248 to 269) is allways on
new page, but then it is possible that I have an allmost empty page an
then the page with the group on it. I would like to prevent that too.

Can someone help me with creating a macro? Thanks in advance

--
leonida
-----------------------------------------------------------------------
leonidas's Profile: http://www.excelforum.com/member.php...fo&userid=3537
View this thread: http://www.excelforum.com/showthread.php?threadid=57129

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Pagebreak when range does not fit

"leonidas" ha
scritto nel messaggio
...

Hi,

I have a question about always printing a group of rows on the same
page.
I have a worksheet with data in rows 12 tot 246. The user can insert
numbers in column J. When printing, the rows with an empty column J
will be hidden and only the rows with a number in column J will be
printed. Below row 246 there is an empty row and then there is a group
of rows (248 to 269) which I would like to allways print on the same
page.

Problem is the group of rows above can vary, because the user can
insert or not insert numbers in column J. I know I can insert a
pagebreak at row 247 so the group of rows (248 to 269) is allways on a
new page, but then it is possible that I have an allmost empty page and
then the page with the group on it. I would like to prevent that too.

Can someone help me with creating a macro? Thanks in advance!





Hi Leonidas,

I think this could be a good starting point for you:

http://exceltips.vitalnews.com/Pages...ge_Breaks.html

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


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
Cant move pagebreak in PageBreak View in Excel2003 Vasanthan Excel Worksheet Functions 1 August 22nd 07 03:28 PM
pagebreak only when range doesn't fit leonidas[_72_] Excel Programming 0 August 9th 06 11:21 AM
PageBreak in VBA??? mvyvoda Excel Programming 1 June 13th 06 04:41 PM
find pagebreak tina Excel Programming 1 June 17th 05 10:01 AM
How to pagebreak Bilal A F Excel Programming 1 November 13th 03 06:57 PM


All times are GMT +1. The time now is 01:40 AM.

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"