amitkumarsharma
New Member
- Joined
- Aug 31, 2016
- Messages
- 10
i want to concatenate two columns
which are in between two yellow filled rows
but its concatenating for whole column till the end of column
Sub ConcatColumns()
Do While ActiveCellColor = NoFill 'Loops until the active cell is not coloured cell.
ActiveCell.Offset(0, 1).FormulaR1C1 = _
ActiveCell.Offset(0, -1) & " " & ActiveCell.Offset(0, 0)
ActiveCell.Offset(1, 0).Select
Loop
End Sub
which are in between two yellow filled rows
but its concatenating for whole column till the end of column
Sub ConcatColumns()
Do While ActiveCellColor = NoFill 'Loops until the active cell is not coloured cell.
ActiveCell.Offset(0, 1).FormulaR1C1 = _
ActiveCell.Offset(0, -1) & " " & ActiveCell.Offset(0, 0)
ActiveCell.Offset(1, 0).Select
Loop
End Sub