Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default print to last line?

is there a way to get excel to print a file but only down to the last row
that has a value in it? I have a file that has 100 lines in it but the
number of populated rows varies. I don't want pages of blank rows.

any ideas?




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default print to last line?

The easiest way to do this is to set the print area to the section of the
sheet that you want to print:

Select the area you want to print, then go File, Print Area, Set Print Area

Otherwise, if there is no print area defined, then Excel will automatically
print the entire rectangular area from A1 to the cell at the intersection of
the highest occupied column and row.

"jiwolf" wrote:

is there a way to get excel to print a file but only down to the last row
that has a value in it? I have a file that has 100 lines in it but the
number of populated rows varies. I don't want pages of blank rows.

any ideas?





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default print to last line?

Yes i do this every day, but i was looking for a way for the process to be
done automatically.


"Vaughan" wrote in message
...
The easiest way to do this is to set the print area to the section of the
sheet that you want to print:

Select the area you want to print, then go File, Print Area, Set Print
Area

Otherwise, if there is no print area defined, then Excel will
automatically
print the entire rectangular area from A1 to the cell at the intersection
of
the highest occupied column and row.

"jiwolf" wrote:

is there a way to get excel to print a file but only down to the last row
that has a value in it? I have a file that has 100 lines in it but the
number of populated rows varies. I don't want pages of blank rows.

any ideas?







  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default print to last line?

This would work if you had numeric data in column A and no gaps, and you
wanted to print columns A to H:

Amend the Print_Area name to refer to the following formula (i.e. Select
Insert, Names, Define then select "Print_Area", don't use File, Print Area or
the File Page Setup menus)

=INDIRECT("$A$1:$H$" & COUNT($A:$A))

The COUNT($A:$A) formula is calculating the number of rows containing
numerical data. There are a lot of other ways to skin that particular feline.


"jiwolf" wrote:

Yes i do this every day, but i was looking for a way for the process to be
done automatically.


"Vaughan" wrote in message
...
The easiest way to do this is to set the print area to the section of the
sheet that you want to print:

Select the area you want to print, then go File, Print Area, Set Print
Area

Otherwise, if there is no print area defined, then Excel will
automatically
print the entire rectangular area from A1 to the cell at the intersection
of
the highest occupied column and row.

"jiwolf" wrote:

is there a way to get excel to print a file but only down to the last row
that has a value in it? I have a file that has 100 lines in it but the
number of populated rows varies. I don't want pages of blank rows.

any ideas?








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
Printing: how do I amend my print defaults? joo Excel Discussion (Misc queries) 7 September 21st 06 02:00 PM
Print separate reports with same column heading [email protected] Excel Discussion (Misc queries) 4 September 1st 06 09:46 PM
In Microsoft Excel when print last letter of each line cut off? Gerhard Excel Discussion (Misc queries) 1 May 13th 05 01:39 PM
set the print area print multiple tabs veng Excel Discussion (Misc queries) 5 February 12th 05 07:01 PM
Printing - Have to set print area 1 column further than necessary STUART BISSET Excel Discussion (Misc queries) 0 January 24th 05 07:59 PM


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