Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am running the following macro to combine text from multiple rows into one
row in a specific column. (Thanks! T.Williams and Dmoney for helping me on this several days ago) Sub Combine() Dim c As Range Dim s As String For Each c In Selection s = s & IIf(s = "", "", Chr(10)) & c.Value Next c Selection.Cells.Value = "" Selection.Cells(1).Value = s End Sub Now, Id like to additional function to my macro. I would like the macro, again in a specific column, to find the first row that contains data, select it and any rows beneath it in the same column until it encounters a blank row (so the whole block is selected), run the above macro on the selected rows. Then, move on to find the next row (still in the same column) that contains data and run the process all over again. Is this possible? Thanks again. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can i randomly select 780 rows from 4000 rows of data | Excel Worksheet Functions | |||
How do I delete blank rows (rows alternate data, blank, data, etc | Excel Discussion (Misc queries) | |||
Copy rows of data (eliminating blank rows) from fixed layout | Excel Discussion (Misc queries) | |||
Get number of rows that data uses, including blank rows | Excel Discussion (Misc queries) | |||
Get number of rows that data takes up, including blank rows | Excel Worksheet Functions |