I am trying to write a macro that concatenates the content of an unknown number of rows in to a single cell and separates the values with a CHAR(10). The groups of data I want to concatenate are separated by a blank row so I imagine that the Macro will need to be terminated via a check for two blank rows on the trot or the presence of a terminating value (in my feeble attempts so far I have used the word 'end' as the terminator). Its complicated further by the fact that some of the cells that need to be merged contain date & time values so they will need to be converted to text.
Below is the skeleton of my initial attempts at getting my head around the algorithm but the main function of actually concatenating the cells is missing.
I have also attached an example worksheet that shows the original data and the desired output (ignore the cell merging, that’s just to make it easier to read).
I hope this makes some kind of sense... Thanks in advance for your help :-)
Stu
Bookmarks