K
ksnapp
ok
I need a sub that will look down column F and if the value in there is
zero, will look in column A, if that cell is blank then I need to
delete the row
here is what I wrote, that doesn't work
Sub hatethissub()
For Each CELL In selection
If activecell.Value = 0 Then
If CELL.Offset(0, -5).Text = "" Then
EntireRow.Delete
End If
End If
Next
End Sub
it gets a runtime error "type mismatch" when it gets to the first if
I need a sub that will look down column F and if the value in there is
zero, will look in column A, if that cell is blank then I need to
delete the row
here is what I wrote, that doesn't work
Sub hatethissub()
For Each CELL In selection
If activecell.Value = 0 Then
If CELL.Offset(0, -5).Text = "" Then
EntireRow.Delete
End If
End If
Next
End Sub
it gets a runtime error "type mismatch" when it gets to the first if