Excel - Code for a row line in source

我怕爱的太早我们不能终老 提交于 2019-12-13 04:15:30

问题


All

I am trying to change the "delimiters" in my csv file, so I can open it as an excel file.

I know the delimiter to separeate the columns is ';'. But what is the delimiter for a new line?

Thanks


回答1:


For windows machines: vbCrLf or Chr(13) & Chr(10)
Carriage Return then Line Feed

If you are going to be using this code on multiple platforms, then vbNewLine will be whatever is needed for the platform (windows/unix/mac/whatever)



来源:https://stackoverflow.com/questions/10750162/excel-code-for-a-row-line-in-source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!