NamedRange::MergeCells Property
Gets or sets a value that indicates whether the NamedRange control contains merged cells.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Property Value
Type: System::Object^true if the NamedRange control contains merged cells; otherwise, false.
The following code example displays the value of the MergeArea and MergeCells properties of a single-cell NamedRange before and after using the Merge method to merge a multiple-cell NamedRange that contains the single-cell NamedRange.
This example is for a document-level customization.
Show: