This seems dangerous. Certainly there is a specific sheetname? What is it?
If MsgBox("Inport and clear the existing Scanner Data?", vbYesNo, "Clear?") _
= vbYes Then wsMstr.Range("DataTable").Clear
I cannot locate this named range. Where is it?
fTXT = Dir(fPath & "*.csv") 'start the TXT file listing
That may be the problem, right there. Your files are .txt files still at this point, so the filter needs to be .txt, not .csv
Some other corrections:
Do While Len(fTXT) > 0
'temporarily rename the file
Name fPath & fTXT As fPath & Replace(fTXT, ".txt", ".csv")
'open a CSV file
Set wbTXT = Workbooks.Open(fPath & Replace(fTXT, ".txt", ".csv"))
'insert col A and add CSV name
Columns(1).Insert xlShiftToRight
Columns(1).SpecialCells(xlBlanks).Value = ActiveSheet.Name
'copy date into master sheet and close source file
ActiveSheet.UsedRange.Copy wsMstr.Range("A" & Rows.Count).End(xlUp).Offset(1)
wbTXT.Close False
'put the filename back
Name fPath & Replace(fTXT, ".txt", ".csv") As fPath & fTXT
'ready next CSV
fTXT = Dir
Loop
Bookmarks