chris-uk-lad
09-19-2008, 12:27 AM
hi all,
Just kinda bumping this cause its annoying me XD
dim strArray() as variant
dim strName as string
strName = "123-1-Cornwall"
strArray = split(strName, "-")
strname = strAray(1) & " - " & strArray(3)
Problem being it says type mismatch on the line:
strArray = split(strName, "-")
The syntax for splitting the string whereever "-" occurs looks correct to me so not sure why its popping this error. Any thoughts?
Just kinda bumping this cause its annoying me XD
dim strArray() as variant
dim strName as string
strName = "123-1-Cornwall"
strArray = split(strName, "-")
strname = strAray(1) & " - " & strArray(3)
Problem being it says type mismatch on the line:
strArray = split(strName, "-")
The syntax for splitting the string whereever "-" occurs looks correct to me so not sure why its popping this error. Any thoughts?