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

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -