chris-uk-lad
Registered User.
- Local time
- Today, 11:06
- Joined
- Jul 8, 2008
- Messages
- 271
hi all,
Just kinda bumping this cause its annoying me XD
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
Code:
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?