I have a question:
Can I use the "split" function to split one by one, EACH Character of a what
is contained in a cell.
I mean, can I use something like this?
SplitAllChar= Split(myVal, "")
Thanks
Coco
I have a question:
Can I use the "split" function to split one by one, EACH Character of a what
is contained in a cell.
I mean, can I use something like this?
SplitAllChar= Split(myVal, "")
Thanks
Coco
Don't think so, you have to do it yourself
ReDim SplitAllChar(1 To Len(myVal))
For i = 1 To Len(myVal)
SplitAllChar(i) = Mid(myVal, i, 1)
Next i
--
HTH
RP
(remove nothere from the email address if mailing direct)
"coco" <coco@discussions.microsoft.com> wrote in message
news:570C95F2-1EEB-427C-85A9-2DB7C6D8CEBF@microsoft.com...
> I have a question:
> Can I use the "split" function to split one by one, EACH Character of a
what
> is contained in a cell.
>
> I mean, can I use something like this?
>
> SplitAllChar= Split(myVal, "")
>
> Thanks
>
> Coco
According to the VBA help file " If delimiter is a zero-length string, a single-element array containing the entire expression string is returned."
You could add a space after each character and then perform the split with space (" ") as the delimiter.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks