Last active
April 16, 2017 15:37
-
-
Save ateneva/028e7ae5650c4e5e494bcc652345e227 to your computer and use it in GitHub Desktop.
un-merge previously merged cells
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 UnmergeCells() | |
Dim Cell As Range | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
'written by Angelina Teneva, September 2016 | |
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
For Each Cell In ActiveSheet.Range("A2:AS4100") | |
If Cell.MergeArea.Address <> Cell.Address Then Cell.UnMerge | |
Next Cell | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment