8.1.26.16 Worksheet::MergeCells

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.


Description

To merge cells.

Syntax

MergeCells(nR1, nC1, nR2, nC2, bLabels = FALSE)

Parameters

nR1
the first row of the cells to do merge
nC1
the first column of the cells to do merge
nR2
the last row of the cells to do merge
nC2
the last column of the cells to do merge
bLabels
if it is TRUE, then range will not get offset, therefore labels area could be specified.

Return

Returns True on successful and False on failure.

Examples

import PyOrigin
wks = PyOrigin.FindWorksheet('[Book1]Sheet1')
wks.MergeCells(5,0,7,2)