#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default printing

I have some worksheets that have several rows of possible
information. Some of these need 2 pages to show all of the
rows. Many times though, maybe only 1 or 2 rowws will need
to be filled out. I then printout almost 2 pages of blank
lines. Is there a way that I can tell it to only print 1
page if the last piece of information is on the first
sheet. That way I won't print a sheet full of blank lines.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default printing

I wont supply example code on this one just yet.

I'm thinking you could catch the Workbook_BeforePrint event and check for
blank content on the second page.
Then set ActiveSheet.PageSetup.PrintArea to the desired range.



"Dennis" wrote in message
...
I have some worksheets that have several rows of possible
information. Some of these need 2 pages to show all of the
rows. Many times though, maybe only 1 or 2 rowws will need
to be filled out. I then printout almost 2 pages of blank
lines. Is there a way that I can tell it to only print 1
page if the last piece of information is on the first
sheet. That way I won't print a sheet full of blank lines.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default printing

From a private reply:

I like to
select the range
then use Data|Filter|Autofilter

Then filter so that non-blanks are showing and print that.

I find it easier than either changing the printarea or selecting a range and
just printing that.


Dennis wrote:

I have some worksheets that have several rows of possible
information. Some of these need 2 pages to show all of the
rows. Many times though, maybe only 1 or 2 rowws will need
to be filled out. I then printout almost 2 pages of blank
lines. Is there a way that I can tell it to only print 1
page if the last piece of information is on the first
sheet. That way I won't print a sheet full of blank lines.


--

Dave Peterson

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
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
Printing art Excel Discussion (Misc queries) 3 August 27th 08 06:40 AM
Excel Printing --Borders are not printing on the same page as data Stup88 Excel Discussion (Misc queries) 1 August 7th 07 09:34 AM
Printing a heading on each new page when printing Brian Excel Discussion (Misc queries) 3 November 15th 06 05:22 PM
Enable Double sided printing contiuously when printing multiple s. Lee Excel Discussion (Misc queries) 1 November 27th 04 01:58 AM


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

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

About Us

"It's about Microsoft Excel"