SpreadsheetGear 2023
Merge Method (IRange)

SpreadsheetGear Namespace > IRange Interface : Merge Method
Merges the cells in the represented range into a single merged cell.
Sub Merge() 
Dim instance As IRange
void Merge()
If any cell other than the top-left cell of the specified range contains data and/or formatting, this data and/or formatting will be lost.

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


IRange Interface
IRange Members
UnMerge Method
MergeArea Property
MergeCells Property
EntireMergeArea Property