2
与Excel播放和与此错误想出了斯普利特和VBA.Split
Sub Split()
Dim txt As String
Dim x As Variant
txt = Sheets("Raw").Cells(2, 2).Value
MsgBox (txt)
x = Split(txt, ",")
For Each i In x
MsgBox (i)
Next
给我两所很多争论的错误分割功能
然而Sub Split()
Dim txt As String
Dim x As Variant
txt = Sheets("Raw").Cells(2, 2).Value
MsgBox (txt)
x = VBA.Split(txt, ",")
For Each i In x
MsgBox (i)
Next
作品只是精细?
所以发生了什么,我相信我已经使用拆分之前与需要vba。字首?
干杯
亚伦
Dohhhhhhhhhhhhhhhhhhh !!!!谈谈现在感觉傻瓜! ;)你知道这可能就是它... :) – DevilWAH
+1这是答案好。永远不要用现有的函数名称命名udf和sub - 它令用户感到非常困惑:) – aevanko
我只是想测试一小段代码,这就是为什么愚蠢的子名称。 Doh,Doh和Doh再次。 :) – DevilWAH