Merge or Unmerge Range of Cells

Contents
[ ]

Example

The following sample code first creates a range - A1:D4 - then merges the cells in the range into a single cell using the Range.Merge() method. Similarly, you can split cells by creating a range and calling the Range.UnMerge() method.