You may use the following the VB program to clean all your files from the system.
Code:
Option Explicit
Sub cleanTxt()
Dim i As Long
Dim lastrow As Long
turn of screen refresh for speed
Application. ScreenUpdating = False
get last row of data Col A
lastrow = Range("A65536").End(xlUp).Row
format all as general
Range(Cells(1, 1), Cells(lastrow, 1)).NumberFormat = "General"
from lastrow to Row 1
For i = lastrow To 1 Step -1
test is text or blank
If Not IsNumeric(Cells(i, 1)) Or Cells(i, 1) = "" Then
delete if text or blank
Cells(i, 1).EntireRow.Delete
End If
leave if number
Next i
turn on screen refresh
Application.ScreenUpdating = True
End Sub
Bookmarks