Sub delRws()
Dim i As Long
For i = Range("A" & Rows.Count).End(xlUp).row To 2 Step -1
If Range("A" & i).Value = LCase(Range("A" & i).Value) Then
Rows(i).Delete
End If
Next i
End Sub
How aboutCode:Sub delRws() Dim i As Long For i = Range("A" & Rows.Count).End(xlUp).row To 2 Step -1 If Range("A" & i).Value = LCase(Range("A" & i).Value) Then Rows(i).Delete End If Next i End Sub
wait a min... my bad. Fluff your VBA works perfectly when I tried a new sheet and free type it. But I think there's a format in my original data that doesn't work with the VBA.
Thank you so much Fluff, I'll try to find the issue.
@LFKim2018 - thanks for testing it for me. if you want the first cell maybe change the "Row to 2" to "Row to 1"
Thanks
Sub delRws()
Dim i As Long
For i = Range("A" & Rows.Count).End(xlUp).row To 2 Step -1
If Range("A" & i).Value <> UCase(Range("A" & i).Value) Then
Rows(i).Delete
End If
Next i
End Sub
How aboutCode:Sub delRws() Dim i As Long For i = Range("A" & Rows.Count).End(xlUp).row To 2 Step -1 If Range("A" & i).Value <> UCase(Range("A" & i).Value) Then Rows(i).Delete End If Next i End Sub