Type | Description | |||
Cell as Variant | A long expression that indicates the handle of the cell being unmerged, or a safe array that holds a collection of handles for the cells being unmerged. Use the ItemCell property to retrieves the handle of the cell. |
The following samples show few methods to unmerge cells:
With Gantt1 With .Items .UnmergeCells .ItemCell(.RootItem(0), 0) End With End With
With Gantt1 With .Items Dim r As Long r = .RootItem(0) .UnmergeCells Array(.ItemCell(r, 0), .ItemCell(r, 1)) End With End With
With Gantt1 .BeginUpdate With .Items .CellMerge(.RootItem(0), 0) = -1 .CellMerge(.RootItem(0), 1) = -1 .CellMerge(.RootItem(0), 2) = -1 End With .EndUpdate End With