RobskiV
11/4/2013 - 11:29 AM

Unmerge & Fill Excel - Macro

Unmerge & Fill Excel - Macro

Sub UnmergeFill()

Dim cell As Range, joinedCells As Range
Application.ScreenUpdating = False

For Each cell In ActiveWorkbook.ActiveSheet.UsedRange
    If cell.MergeCells Then
        Set joinedCells = cell.MergeArea
        cell.MergeCells = False
        joinedCells.Value = cell.Value
    End If
Next

Application.ScreenUpdating = True

End Sub