MergeCells Method

Merges a number of cells into one.

Syntax

Public Sub MergeCells(ByVal FirstRow As Integer, ByVal FirstCol As Integer, ByVal LastRow As Integer, ByVal LastCol As Integer)

Applies To

Grid Object

Parameters

The following parameters are available:

Parameter Description
FirstRow First row of the merged cell.
FirstCol First column of the merged cell.
LastRow Last row of the merged cell.
LastCol Last column of the merged cell.

Return Type

None

See Also

UnMergeCells Method