Excel - 源中行行的代码 [英] Excel - Code for a row line in source

查看:95
本文介绍了Excel - 源中行行的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部

我正在尝试更改csv文件中的分隔符,因此我可以将其作为excel文件打开。

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?

感谢

推荐答案

对于Windows机器: vbCrLf Chr(13)& Chr(10)

回车换行

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

如果您要在多个平台上使用此代码,那么 vbNewLine 将是平台所需的任何内容(windows / unix / mac / whatever)

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)

这篇关于Excel - 源中行行的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆