我想创建一个宏,只有在A列中有数据时,才会将A列中的单元格与B列中的单元格合并。请帮助
答案 0 :(得分:0)
Sub concatenate()
Dim row As Integer
Range("A1").Select
row = 0
Do Until ActiveCell.Offset(row, 0).Value = ""
ActiveCell.Offset(row, 0).Value = ActiveCell.Offset(row, 0).Value + ActiveCell.Offset(row, 1).Value
row = row + 1
Loop
End Sub