Im trying to format some information from a pdf. I'll paste everything into excel, delete the rows I dont need then format the text strings to be suitable for a table.
I want to keep only the lines that start with a number, all other rows can be deleted. This is the code im working on:
Code:
Sub test()
Dim Ncell As Range
Dim IsNotNumber As Boolean
For Each Ncell In Rangeleft("a" & Rows.Count).End(xlUp)
If Not IsNumeric(Ncell) Then Rows(Ncell).Delete
Next Ncell
End Sub
I had this working to an extent i just need this to all work as one: (obviously this is deleting the lines WITH numbers. I was just testing with it.
Code:
If IsNumeric(left(Range("a" & i).Value, 1)) Then Rows(i).Delete
All help appreciated, Thanks
Andy