Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Printing a spread sheet and skipping rows.

I want to print a spread sheet but skip all rows that have #n/a in any cell
in that row.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Printing a spread sheet and skipping rows.

F5SpecialFormulas. Uncheck all but "Errors" and hit OK.

FormatRowsHide.

Now print the sheet.

When done, unhide the rows.


Gord Dibben MS Excel MVP

On Wed, 26 Jul 2006 13:54:02 -0700, WAVIS
wrote:

I want to print a spread sheet but skip all rows that have #n/a in any cell
in that row.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default Printing a spread sheet and skipping rows.

The easiest way to exclude the rows from printing is to hide them. With the
desired sheet active, select Edit Go To Special. Select Formulas,
uncheck everything except Errors, and click OK. All the cells with formulas
returning #N/A (or any other error) should be selected. Select Format Rows
Hide to hide the rows containing those cells. Print the worksheet.


Here is the same procedure in a macro.

Sub HideErrorRows()
'Selects all cells with formulas reutrning an error
'on the active worksheet, then hides the rows containing
'those cells.
Selection.SpecialCells(xlCellTypeFormulas, 16).Select
Selection.EntireRow.Hidden = True
End Sub

Hope this helps,

Hutch

"WAVIS" wrote:

I want to print a spread sheet but skip all rows that have #n/a in any cell
in that row.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Printing a spread sheet and skipping rows.



"WAVIS" wrote:

I want to print a spread sheet but skip all rows that have #n/a in any cell
in that row.


Thanks to all. Followed instructions and it works great.
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
reference row on another sheet skipping zeros but not skipping li. Brennan Downes Excel Discussion (Misc queries) 2 April 2nd 23 02:28 PM
Trouble with skipping rows Wazooli Excel Worksheet Functions 1 March 23rd 05 03:19 PM


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