Hello,
I am using the code below to try to remove rows that contain any value in a certain column (Column AK). Presently, the code is deleting every line. I am probably missing something really obvious, but i have looked on several different sites and I can't seem to sort it out.
Any help would be greatly appreciated.
Variable p is a particular worksheet that is declared earlier in the code
For t = t To 1 Step -1
If p.Cells(t, "AK") = "" Then
Else
p.Rows(t).EntireRow.Delete
End If
Next
BWL
I am using the code below to try to remove rows that contain any value in a certain column (Column AK). Presently, the code is deleting every line. I am probably missing something really obvious, but i have looked on several different sites and I can't seem to sort it out.
Any help would be greatly appreciated.
Variable p is a particular worksheet that is declared earlier in the code
For t = t To 1 Step -1
If p.Cells(t, "AK") = "" Then
Else
p.Rows(t).EntireRow.Delete
End If
Next
BWL