Using the ListFiles sub gave me the info in a form I could use.
Fumbling thru, I got the following two subs to get the job done. I suspect that someone who actually knows what to do and how to do it could greatly improve what I have done.
Any and all help is greatly appreciated.
Code:
Public Sub ExtractNum()
Dim lr As Long
lr = Range("C" & Rows.Count).End(xlUp).Row
Dim AnyString, MyStr
Dim SearchString, SearchChar, MyPos
For i = 1 To lr
SearchString = ActiveCell.Value ' String to search in; C1
SearchChar = "." ' Search for ".".
MyPos = InStr(1, SearchString, SearchChar, 1)
AnyString = SearchString ' Define string; C1 value
MyStr = Left(AnyString, MyPos - 1) ' Returns
ActiveCell.Offset(0, -2).Value = MyStr
ActiveCell.Offset(1, 0).Select
Next i
End Sub
Code:
Public Sub GetMissingNums()
Dim lr As Long
lr = Range("C" & Rows.Count).End(xlUp).Row
For i = 2 To lr
If Range("A" & i).Value - Range("A" & i - 1).Value > 1 Then Range("B" & i).Value = "#"
Next i
End Sub
Bookmarks