![]() |
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. |
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. |
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. |
All times are GMT +1. The time now is 07:15 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com