Hi I have a sheet that has letters and numbers in the "A" column but I want to keep only those that start with a number and delete all those that start with a letter here is the code that I adapted from another post :
count = 0
For i = 7 To 151
Select Case Val(Left(Range("A" & i).value, 1))
Case 3
'do nothing
Case Else
Rows(i).Delete
count = count + 1
End Select
Next i
It leaves several columns that start with something other then a 3 at the bottom.
Help anyone?
count = 0
For i = 7 To 151
Select Case Val(Left(Range("A" & i).value, 1))
Case 3
'do nothing
Case Else
Rows(i).Delete
count = count + 1
End Select
Next i
It leaves several columns that start with something other then a 3 at the bottom.
Help anyone?
