Hi all,
I have a problem which has me a bit stumped..
I have written a macro in excel 2010 which seems to work fine but when I use it in excel 2003 it all works except the csv produced is not right. The macro writes the data into a csv which needs to have a comma at the end of each row.
eg. 3,4,5,
3,4,5,
but half way down when running this in excel 2003 it does this..
3,4,5,
3,4,5,
3,4,5
3,4,5
I use this code to write to the csv..
ActiveWorkbook.SaveAs FileName:=fullFile, _
FileFormat:=xlCSV, CreateBackup:=False, Local:=True
wBook.Close savechanges:=False
I have tried changing the file format to xlCSVMSDOS and xlCSVWindows but I still have the same problem.
Any help would be greatly appreciated.
Many thanks, K
I have a problem which has me a bit stumped..
I have written a macro in excel 2010 which seems to work fine but when I use it in excel 2003 it all works except the csv produced is not right. The macro writes the data into a csv which needs to have a comma at the end of each row.
eg. 3,4,5,
3,4,5,
but half way down when running this in excel 2003 it does this..
3,4,5,
3,4,5,
3,4,5
3,4,5
I use this code to write to the csv..
ActiveWorkbook.SaveAs FileName:=fullFile, _
FileFormat:=xlCSV, CreateBackup:=False, Local:=True
wBook.Close savechanges:=False
I have tried changing the file format to xlCSVMSDOS and xlCSVWindows but I still have the same problem.
Any help would be greatly appreciated.
Many thanks, K