Help!

Not printing zero records


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Printing RSS
Next:  Meeting invites unformatted  
Author Message
kkc97



Joined: Aug 15, 2007
Posts: 4



PostPosted: Thu Aug 16, 2007 11:37 am    Post subject: Not printing zero records

I have a spreadsheet that totals 12 columns left to right. What I want to do is NOT print the records that have a total of 0. This code works if the total column is blank. However, I have a formula in the total column to give me the totals. So it isn't null or blank and it shows on the print command.
Any ideas? Sad
Thanks.

If ActiveSheet.Name = "TOTALS" Then
Cancel = True
Application.EnableEvents = False
Application.ScreenUpdating = False
With ActiveSheet
On Error Resume Next
.Columns("N").SpecialCells(xlCellTypeBlanks).EntireRow.Hidden = True
.PrintOut
.Columns("N").SpecialCells(xlCellTypeBlanks).EntireRow.Hidden = False

End With
Application.EnableEvents = True
Application.ScreenUpdating = True
End If
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Printing All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum