H
Howard
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
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