Opening CSV in Excel using VBA causes data to appear in two columns instead of one

后端 未结 5 1509
闹比i
闹比i 2021-01-20 12:17

I created VBA code in Excel 2007/2010 to import data from a CSV file. Unfortunately, when I open the file programmatically, the data is split into two columns (A and B) for

5条回答
  •  不知归路
    2021-01-20 12:32

    In order to import data with a separator that is not a comma, you should set the Format attribute to 6 in order to be able to define your delimiter, as described here. It should also work if you directly set Format to 4

提交回复
热议问题