Last active
November 23, 2016 09:02
-
-
Save arunkumr/5626f53fe94f32a50bc071293df5b2f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub UnMergeFill() | |
Dim cell As Range, joinedCells As Range | |
For Each cell In ThisWorkbook.ActiveSheet.UsedRange | |
If cell.MergeCells Then | |
Set joinedCells = cell.MergeArea | |
cell.MergeCells = False | |
joinedCells.Value = cell.Value | |
End If | |
Next | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment