Unmerge Cells And Fill With Duplicate Data With VBA Code

Source :

Sub UnMergeSameCell()
Dim Rng As Range, xCell As Range
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each Rng In WorkRng
    If Rng.MergeCells Then
        With Rng.MergeArea
            .Formula = Rng.Formula
        End With
    End If
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub

Berikan Komentar yang bermanfaat dan sehat. Conversion Conversion Emoticon Emoticon