Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() With these three examples in a single cell, say A1 & A4 & A7, I have a simple macro to put each char into a individual cell (including spaces). What I want is a 26 char limit per line, space counts as a char. In the first line the 26th spot falls in one of the spaces, so a break there is good to put the remaining chars on the next line. In the second line the 26th char falls between the "YP" so in this case I need to back up to the first available space before "YP" and make the break there. The third line is less than 26 char so it needs no split, but needs to be included in the final 'each char in an individual cell' caper. HZG MY AG AGHTO TYMVKTZ. K RHT'M ZGM YIJ; K'A UYQTZ. XVGT K'A KT PEYTM YP HT HQJKGTRG, HII MVHM ZGYEZG NQETO Either of the following capers is fine with me. 1. Run the text to columns code and put the entire line in individual cells (including spaces) then run a "26 char max that does not split a word" code and have the line on two rows now. 2. Split the line as is with a "26 char max that does not split a word" code and then run the text to columns code on those lines to put each char in individual cells. Finding that proper space to make the line break has me stumped. Thanks, Howard |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I restrict a text column to a specific number of characters? | Excel Discussion (Misc queries) | |||
How to cut off characters in a text column | Excel Discussion (Misc queries) | |||
Deleting characters in a column of cells -converting to text strin | Excel Programming | |||
Function to move text 65 characters to next row in column? | Excel Worksheet Functions | |||
want to remove all text characters equal to one character in length from text string | Excel Worksheet Functions |