Split function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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)
 
According to the VBA help file " If delimiter is a zero-length string,
single-element array containing the entire expression string i
returned."

You could add a space after each character and then perform the spli
with space (" ") as the delimiter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top