vba - Merging text from multiple cells into one cell -
I'm new to VBA and I'm trying to solve a small problem at work. How can I copy a string of A merged cells to some cells?
Say that I have five cells from them:
<<<> one two three four five
Let me take these And with these words, a cell should be created below each other
Like:
sub-testing () String dim as the slow merged STR, later in cell range ("A1: A5") for each, as a boolean, if it merged later Then mergedStr = mergedStr & amp; Chr (10) mergedStr = mergedStr & amp; Cell.Value afterFirst = True Next cell range ("D3"). Value = mergedStr End Sub
Comments
Post a Comment