Range.Merge Method
Creates a merged cell from the specified Range object.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub Merge ( _
Across As Object _
)
'Usage
Dim instance As Range
Dim Across As Object
instance.Merge(Across)
void Merge(
Object Across
)
Parameters
Across
Type: System.ObjectOptional Object. True to merge cells in each row of the specified range as separate merged cells. The default value is False.
Remarks
The value of a merged range is specified in the cell of the range's upper-left corner.