Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default don't want to have page breaks in union

Hi
I used VBA (I use Excel 5) to select two regions of a worksheet.
The first is some headers (cells a3:bn5) and
the second is one region (cells a7:bn7) that includes
what I want to be printed.
So I use union to selected these two regions.
But in print preview (hence in the printout) the first range (the
headings) is printed separately from the other region.
How can I get rid of these page breaks?
I admit that hiding the rows between did not work.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default don't want to have page breaks in union

Don't select two regions. Select the top left cell in the header and the
bottom right cell in the region so that entire area/range is selected. Then
hide the rows you don't want to see. then print.

Rows(6).Hidden = True
Range("A3:BN7").Printout
Rows(6).Hidden = False

Or, you can use the rows to repeat at top setting on the last tab in the
Page Setup Dialog to identify your header rows. Then just print the region.

--
Regards,
Tom Ogilvy

"fuzzy" wrote in message
ups.com...
Hi
I used VBA (I use Excel 5) to select two regions of a worksheet.
The first is some headers (cells a3:bn5) and
the second is one region (cells a7:bn7) that includes
what I want to be printed.
So I use union to selected these two regions.
But in print preview (hence in the printout) the first range (the
headings) is printed separately from the other region.
How can I get rid of these page breaks?
I admit that hiding the rows between did not work.



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
I can't move my page breaks in Page Break Preview btaft Excel Discussion (Misc queries) 6 April 27th 23 11:49 AM
When automatic page breaks are moved each cell becomes a new page Queso hotmail com> Excel Discussion (Misc queries) 0 March 30th 10 03:08 AM
Vertical page breaks won't drag in Page Break Preview Caroline Excel Discussion (Misc queries) 0 July 14th 09 12:19 PM
How do I do page breaks when view menu doesnt page break preview HeatherF55 Excel Discussion (Misc queries) 0 September 21st 07 04:24 AM
Page Breaks- Printing selected rows on same page ToddEZ Excel Discussion (Misc queries) 1 July 18th 07 04:38 PM


All times are GMT +1. The time now is 08:00 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"