how can i make it so this vba scripts deletes row containing a Percentage
Sub Macro2()
Dim celltxt As String
Dim a As Variant
For Each i In Range(Cells(3, 2), Cells(160, 2))
If i.Value > 1 Then
i.Offset(0, 2).Value = i.Offset(0, 2).Value + 1
End If
If i.Value < 1 Then
i.Offset(0, 2).Value = i.Offset(0, 2).Value + "NEI"
End If
If i.Value = "%" Then
i.Offset(0, 2).Value = i.Offset(0, 3).Value + "joda"
End If
Next i
End Sub
Sub slettRadD()
Range("D1:D160").Select
Selection.ClearContents
End Sub
Sub SlettAlle()
Range("A3:D160").Select
Selection.ClearContents
End Sub
in this section
If i.Value = "%" Then
i.Offset(0, 2).Value = i.Offset(0, 3).Value + "joda"
End If
i need it to delete the Horisontal row, or just delete the content in that cell. containing a percentage or percentage sign. just checked to see if i could even find it, but it does not seem work just adding a value in those colums.