Excel 2003:
某一个字符串(比较长)遇到空格就截取某段写入到Excel表格中去
比如
Dim str as string
str="I love you more than i can say"
在表格中,第一行一列显示I,二列显示love……
这个算法要怎么写呀?
某一个字符串(比较长)遇到空格就截取某段写入到Excel表格中去
比如
Dim str as string
str="I love you more than i can say"
在表格中,第一行一列显示I,二列显示love……
这个算法要怎么写呀?
2:写法如下:
Dim str as string
dim strS() as string
dim i as integerstr="I love you more than i can say"
strs=split(str)
for i=0 to ubound(strs)
application.cells(1,i+1)=strs(i)
next
就这么简单呀,你没试?
split(str)(i) i为变量
自己试一下就知道了