Split Function type mismatch error
Hey Guys,
I am getting a type mismatch error when I attempt to split a string.
Here is what I have tryed so far:
Dim st As String
Dim t As String
st = "now then"
t = Split(st, vbTab)
MsgBox t
this give a type mismatch error. I also tried this:
dim v as variant
v = split(st, vbTab)
MsgBox v
This also gives a type mismatch error. I also tried this:
dim arr(2) as string
arr = split(st, vbTab)
msgbox arr(0)
This give a "can't assign array" error.
Any suggestions will be 100% appreciated. Thanks
Ryan
nikotromus
__________________
nikotromus
|