见代码:
Sub tk()
For h = 3 To Cells(Rows.Count, 4).End(xlUp).Row
hbh = Cells(h, 2).MergeArea.Rows.Count
If hbh > 1 Then
For gdh = 0 To hbh - 1
zf = zf & Cells(h + gdh, "d")
Next gdh
zf = Cells(h, "c") & zf
Cells(h, "v") = zf
zf = ""
h = h + hbh - 1
End If
Next h
End Sub