If the txt files ar delimited semicolon, the following code can be usefull.
Sub convert()
Dim strDir As String
Dim strFile As String
Dim intPos As Integer
strDir = ActiveSheet.Cells(1, 1).Value
If Left(strDir, 1) <> "\" Then strDir = strDir & "\"
intPos = Len(strDir)
strFile = Dir(strDir & "*.txt")
Do While Len(strFile) > 0
Workbooks.OpenText strDir & strFile, , , xlDelimited, , , , True
ActiveWorkbook.SaveAs strDir & Left(ActiveWorkbook.Name, Len(strFile) - 4) & ".xlsx", FileFormat:=xlOpenXMLWorkbook
strFile = Dir
Loop
End Sub
HTH
Bookmarks