帮你粘贴一段高人写的代码,每个拆开的单元格均保留元合并单元格内容,你自己做适当修改:
Dim StrMer As String
Dim IntCot As Integer
Dim i As Integer
With Sheet1
For i = 2 To .Range("A65536").End(xlUp).Row
StrMer = .Cells(i, 2).Value
IntCot = .Cells(i,2).MergeArea.Count
.Cells(i, 2).UnMerge
.Range(.Cells(i, 2), .Cells(i +IntCot - 1, 2)).Value = StrMer
i = i + IntCot - 1
Next
End With