MTblGetLastMergedCell

Functions ›› MTblGet... ›› MTblGetLast... ››
Parent Previous Next

bOk = MTblGetLastMergedCell( hWndCol, nRow, hWndrLastMergedCol, nrLastMergedRow )

Retrieves the last cell which is merged with the specified cell.

Parameters
hWndCol
Window Handle: Handle of the column

nRow
Number: Row number

hWndrLastMergedCol
Receive Window Handle: Contains the column handle of the last cell which is merged with the specified cell if the function returns successfully

nrLastMergedRow
Receive Number: Contains the row of the last cell which is merged with the specified cell if the function returns successfully

Return
Boolean: TRUE if successful or FALSE if there are no merged cells or an error occurs

Example
In this example we check whether a cell has merged cells:

If MTblGetLastMergedCell( hWndCol, nRow, hWndLastMergedCol, nLastMergedRow )
 Call SalMessageBox( "The cell has merged cells.", "Merge info", 0 )

See also
Cell merging
Row merging

Created with the Personal Edition of HelpNDoc: Full-featured EPub generator