Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
for each character in a cell
I need to perform a function for each character in a cell.
I have for each c in activecell.characters do something next c I get "Object does not support this property or method" Any advice? Thanks, Kevin |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
for each character in a cell
Hi,
From the XL online documentation on CHaracters: "Remarks The Characters object isn't a collection " That is, For Each won't work. You have to loop with a regular For: Dim i as long, ttl as long Dim s as string ttl=ActiveCell.Characters.Count For i=1 to ttl s= ActiveCell.Characters(i,1).text NExt -- Regards, Sébastien <http://www.ondemandanalysis.com <http://www.ready-reports.com "Kevin" wrote: I need to perform a function for each character in a cell. I have for each c in activecell.characters do something next c I get "Object does not support this property or method" Any advice? Thanks, Kevin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 - Formatting text in cell (character by character) | Excel Discussion (Misc queries) | |||
If cell has any character typed in it cell curser moves to next c | Excel Discussion (Misc queries) | |||
program cell to display any character when cell is active | Excel Programming | |||
importing undelimited text file data, character-by-character | Excel Programming | |||
Copy partial cell character format(s) from one cell to another - an example | Excel Programming |