Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nees Function to Split ytayta555 Excel Worksheet Functions 3 February 25th 10 08:45 PM
Split Cell using If or other function JPS Excel Worksheet Functions 0 March 19th 09 03:50 PM
VBA SPLIT FUNCTION PCC Excel Programming 9 April 17th 04 02:40 AM
Split Function TAM Excel Programming 1 February 21st 04 10:23 AM


All times are GMT +1. The time now is 10:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"