You're welcome.
Sub ExtractValueInBetween()
Dim filename As String, nextrow As Long, MyFolder As String, c As Long
Dim MyFile As String, text As String, textline As String, beginStr As String, endStr As String
MyFolder = "C:\test\" 'I need to make this work as a FileDialog Picker!!
MyFile = Dir(MyFolder & "*.txt")
Do While MyFile <> ""
Open (MyFolder & MyFile) For Input As #1
Do Until EOF(1)
Line Input #1, textline
text = text & textline
Loop
Close #1
Debug.Print text
nextrow = ActiveSheet.Cells(Rows.Count, "B").End(xlUp).Row + 1
ActiveSheet.Cells(nextrow, 1).Value = MyFile
For c = 2 To ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column
beginStr = InStr(text, Cells(1, c).Value) + Len(Cells(1, c).Value)
endStr = InStr(text, Cells(2, c).Value)
ActiveSheet.Cells(nextrow, c).Value = Mid(text, beginStr, endStr - beginStr)
Next c
MyFile = Dir
text = ""
Loop
End Sub
Bookmarks