Export to spool // Format issue
Hello,
I try to export a selection of data from excel to a specified spool in format .txt , but unfortunately, my file appears with "," and not";" as requested (even after having modified my file in .CSV) and my data finish by ,,,,,,,,,,,
So I can not use it in an other software.
If somebody meet the same problem.
Partial Code :
ActiveWorkbook.SaveAs Filename:="K:/NAME", _
FileFormat:=xlCSV, CreateBackup:=True, Local:=True
ActiveWorkbook.SaveCopyAs Filename:="K:/NAME.txt"
ActiveWorkbook.Sheets.Select
Selection.Replace What:=",", Replacement:=";", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
I have :
30/09/09,Client1,40148,100.0,100.0,name1,,,name4,,,,,,,,
,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,
Thanks for your help.
Julien
|