Hi,
I'm trying to create a macro that will take the text in a free formatted unlimited cell on one worksheet and convert it into a number of cells on another worksheet with each cell containing no more than 60 characters. This is so that it can then be automatically uploaded into another piece of software that cannot handle wrapping text and has a text box maximum length of 60 characters but can have any number of rows.
I've found various methods to achieve this if all text is in a single line within the original cell but as the original cell is in effect a notes section it may contain carriage returns and I haven't found anything that will cope with that. Also, every option I've found so far splits the cell across several columns where as I need to split them down several rows. I'm aware the destination cell will have to be on a different column or worksheet as otherwise it would overwrite the entry below it but that is fine as the end location for the text is a separate sheet anyway and I'm already utilising a few hidden worksheets for data manipulation before it ends up on the required sheet.
Examples of the sort of text that might be in the cells are:
[TABLE="class: outer_border, width: 500"]
ESD Evaporator Level Transmitter for High High trip
0 - 2150mm of R410A or 0 - 2709mm of H2O
0% correspond at the bottom vessel
[/TABLE]
or
[TABLE="class: outer_border, width: 500"]
R410A flow from Economizer Outlet to Evaporator Inlet HMI Isolation Valve Open Indication
[/td]
[/TABLE]
What I need to end up with is
[TABLE="class: grid, width: 500"]
Evaporator Level Transmitter - DP
[/td]0 - 2150mm of R410A or 0 - 2709mm of H2O
[/td]0% correspond at the bottom vessel
[/td]
[/TABLE]
(keeping the line space between the first and second row of text is optional)
or
[TABLE="class: grid, width: 500"]
R410A flow from Economizer Outlet to Evaporator Inlet HMI Isolation
[/td]Valve Open Indication
[/td]
[/TABLE]
Any suggestions anyone can come up with will be greatly received.