![]() |
Split function
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 |
Split function
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" wrote in message ... 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 |
Split function
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 -- bhofset ----------------------------------------------------------------------- bhofsetz's Profile: http://www.excelforum.com/member.php...fo&userid=1880 View this thread: http://www.excelforum.com/showthread.php?threadid=37982 |
All times are GMT +1. The time now is 04:44 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com