The following code:
does what it is supposed to do; it deletes rows which contain a zero in column G. I do this once a week and there are an average of about 6,000 to 8,000 rows.
I want to delete rows in column H which contain a number less than 1100. Nothing that I am doing will work.
For informational purposes: I know nothing of vba and not much more about Excel. I have been using spreadsheets for some time but very basically. Now I need to speed some of my work up and I need to start using vba or something. By the way, this code is for an imported csv file which must be edited before ending up in an Access database.
If you can help, I will appreciate it.
THANKS !!!
Code:
Sub Delete_zero_row()
With Columns("G")
.AutoFilter Field:=1, Criteria1:="0" 'remove the quotes around the zero if it's not text
.Resize(Rows.Count - 1).Offset(1).EntireRow.Delete
.AutoFilter
End With
End Sub
I want to delete rows in column H which contain a number less than 1100. Nothing that I am doing will work.
For informational purposes: I know nothing of vba and not much more about Excel. I have been using spreadsheets for some time but very basically. Now I need to speed some of my work up and I need to start using vba or something. By the way, this code is for an imported csv file which must be edited before ending up in an Access database.
If you can help, I will appreciate it.
THANKS !!!
Last edited by a moderator: