Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
StephB
 
Posts: n/a
Default only printing certain rows

I have a long list of data. Not every column has data in it. I only want to
print the rows with data in a certain column. Is there a format or formula to
automatically hide the rows if there is nothing entered in the cell in a
certain column? The data is long and I have to do this for multiple sheets so
I'd prefer something automatic.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron de Bruin
 
Posts: n/a
Default only printing certain rows

You can try this
http://www.rondebruin.nl/print.htm#Hide

And use this lines in the event

With ActiveSheet
On Error Resume Next
.Columns("A").SpecialCells(xlCellTypeBlanks).Entir eRow.Hidden = True
.PrintOut
.Columns("A").SpecialCells(xlCellTypeBlanks).Entir eRow.Hidden = False
On Error GoTo 0
End With





--
Regards Ron de Bruin
http://www.rondebruin.nl


"StephB" wrote in message ...
I have a long list of data. Not every column has data in it. I only want to
print the rows with data in a certain column. Is there a format or formula to
automatically hide the rows if there is nothing entered in the cell in a
certain column? The data is long and I have to do this for multiple sheets so
I'd prefer something automatic.

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default only printing certain rows

The easy way to do this would be to apply an AutoFilter to that column, then
select "Non Blanks".

Highlight the column
Select Filter from the Data menu
Select AutoFilter
You should now see a dropdown box in the first cell of that column
From that list, select (NonBlanks)

You can then turn this on/off as needed without writing code or macros or
long formulas.

HTH,
Elkar


"StephB" wrote:

I have a long list of data. Not every column has data in it. I only want to
print the rows with data in a certain column. Is there a format or formula to
automatically hide the rows if there is nothing entered in the cell in a
certain column? The data is long and I have to do this for multiple sheets so
I'd prefer something automatic.

Thanks in advance.

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 only certain rows? sambles28 Excel Worksheet Functions 1 January 18th 06 07:08 PM
Hide Empty Rows When Printing Bob Excel Worksheet Functions 5 August 20th 05 12:57 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
printing only selected rows in a sheet Wizard Excel Discussion (Misc queries) 0 May 11th 05 06:46 PM
Printing problems with columns and rows Ann Shaw Excel Discussion (Misc queries) 0 February 17th 05 05:35 PM


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