|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 1234vba 于 2018-10-4 20:35 编辑
这个split的循环套 要如何写呢?
数据一共有720组,不知道是split快还是正则更快呢
我这样测试,只能是单列的。。。
Sub main00()
Dim s$
s = [k1]
tr = Split(s, "issue")
For x = 1 To UBound(tr)
Debug.Print tr(x)
Next
End Sub
Debug.Print的结果:
":"20181234-1223","code":"6,9,1,8,6","code1":"318289186","code2":null,"time":1538569386000},{"ttery":"wadef","
":"20181234-1222","code":"9,4,7,7,4","code1":"318234774","code2":null,"time":1538569326000},{"ttery":"wadef","
":"20181234-1221","code":"0,4,4,4,7","code1":"318184447","code2":null,"time":1538569266000}]
数据在表1的K1单元格里
内容:
- [{"ttery":"wadef","issue":"20181234-1223","code":"6,9,1,8,6","code1":"318289186","code2":null,"time":1538569386000},{"ttery":"wadef","issue":"20181234-1222","code":"9,4,7,7,4","code1":"318234774","code2":null,"time":1538569326000},{"ttery":"wadef","issue":"20181234-1221","code":"0,4,4,4,7","code1":"318184447","code2":null,"time":1538569266000}]
复制代码
我想取 ssue段 + code段的内容
issue段
"issue":"20181234-1223"
"issue":"20181234-1222"
"issue":"20181234-1221"
code段
"code":"6,9,1,8,6"
"code":"9,4,7,7,4"
"code":"0,4,4,4,7"
附件:
调试.rar
(18.6 KB, 下载次数: 37)
请各位老师帮忙
|
|