
Soubor = "POKUS.TXT"
Dim xlsApp
Set xlsApp = CreateObject("Excel.Application")
With xlsApp
On Error Resume Next
.Workbooks.OpenText Cesta & Soubor, 65001, 1, 1, , False, True, False, False, False, False, , Array(Array(1, 2), Array(2, 2), Array(3, 2), Array(4, 2), Array(5, 2), Array(6, 2), Array(7, 2), Array(8, 2), Array(9, 2), Array(10, 2), Array(11, 2), Array(12, 2), Array(13, 2), Array(14, 2), Array(15, 2), Array(16, 4), Array(17, 4), Array(18, 1), Array(19, 1)), , ".", ",", False
If Not Err.Number = 0 Then
MsgBox Err.Description
End If
On Error GoTo 0
If .Workbooks.Count = 1 Then
With .ActiveWorkbook
On Error Resume Next
.SaveAs Cesta & "Pokus.xlsx", 51
If Not Err.Number = 0 Then
MsgBox Err.Description
End If
On Error GoTo 0
.Close
End With '.ActiveWorkbook
End If
.Quit
End With 'xlsApp
Set xlsApp = Nothing