Deleting a row with a cell containing a value of 0.00

R

RW

I would like to delete all the rows in a worksheet that contain the value of
0.00, these values come from another worksheet through the formula
=CheckInfo!$AC$2. The 0.00 are all in the same column. I am using Excell 2003.
 
G

Gord Dibben

Have you tried Data>Filter>Autofilter for 0.00 and deleting the resultant
rows?


Gord Dibben MS Excel MVP
 
R

RW

I was trying to do it with a visual basic sub to automate it for my helper.
Any code for this situation?
Thanks
 
G

Gord Dibben

Sub delete_zero_rows()
Dim c As Range
With ActiveSheet.Columns("H") 'edit to suit
Do
Set c = .Find("0", LookIn:=xlValues, lookat:=xlWhole, _
MatchCase:=False)
If c Is Nothing Then Exit Do
c.EntireRow.Delete
Loop
End With
End Sub


Gord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top