How would you create a FOR LOOP that loops within a cell?

How would you create a For Loop that loops within a specific cell? I want to make a code that loops for each 'word' (separated by spaces) within a cell. So if a cell contains the string 'the dog has fleas', I want my code to loop on 'the', then on 'dog, then on 'has' and finally on 'fleas' before stopping.

2011-03-10T10:31:40Z

Ah sorry, Excel :P

femtorgon22011-03-10T10:16:58Z

Favorite Answer

You really need to describe your problem better.
First, you don't mention a language.
Second, what is a cell? Perhaps the word cell has a very specific meaning in the language your looking for, so this question isn't necessary, but generally, I don't know what a cell is. An element of an array?

Anonymous2011-03-10T18:14:28Z

what language?