Skip to content

Instantly share code, notes, and snippets.

@ateneva
Last active April 16, 2017 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ateneva/028e7ae5650c4e5e494bcc652345e227 to your computer and use it in GitHub Desktop.
Save ateneva/028e7ae5650c4e5e494bcc652345e227 to your computer and use it in GitHub Desktop.
un-merge previously merged cells
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