Trying to amend this code to get the following result
If column B = GBP then do not delete that row and if column A = code AL1234 and column B = EUR then do not delete the row everything else delete row.
Set ws = Sheets("EQUITY REPORT")
For lRow = ws.UsedRange.Row + ws.UsedRange.Rows.Count - 1 To 1 Step -1
v1 = ws.Cells(lRow, "D").Value
If Len(v1) > 0 _
And IsNumeric(v1) _
And Val(v1) = 0 Then
ws.Rows(lRow).Delete Shift:=xlUp
End If
Next lRow
Thanks.
If column B = GBP then do not delete that row and if column A = code AL1234 and column B = EUR then do not delete the row everything else delete row.
Set ws = Sheets("EQUITY REPORT")
For lRow = ws.UsedRange.Row + ws.UsedRange.Rows.Count - 1 To 1 Step -1
v1 = ws.Cells(lRow, "D").Value
If Len(v1) > 0 _
And IsNumeric(v1) _
And Val(v1) = 0 Then
ws.Rows(lRow).Delete Shift:=xlUp
End If
Next lRow
Thanks.