Not the cleanest code in the world, but it should be a decent base. I seperated out the file name, just in case you don't actually save the files in Temp. If you do save it in that directory, you can change "C:\Temp\" & Mid(fileName, 8) to just fileName.
Option Explicit
Sub Macro1()
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Dim i As Integer
Dim origWork As Workbook
Dim txtFile As Workbook
Dim fileName As String
Set origWork = ActiveWorkbook
For i = 5 To 13
fileName = Cells(i, 1).Value
Workbooks.OpenText fileName:= _
"C:\Temp\" & Mid(fileName, 8), Origin:=437, _
StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, Comma:=False _
, Space:=False, Other:=False, FieldInfo:=Array(1, 1), _
TrailingMinusNumbers:=True
Set txtFile = ActiveWorkbook
Cells(8, 1) = origWork.Sheets(1).Cells(3, 3).Value
Cells(9, 1) = "I"
txtFile.Close True
Next i
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
Bookmarks