|
|
|
|
<Spreadsheet>.SelectMinus (Function) In french: <Tableur>.SelectMoins Deselects one or more cells in a Spreadsheet control found in a window.
PSHEET_Spreadsheet.SelectMinus() PSHEET_Spreadsheet.SelectPlus("A2", "B5") PSHEET_Spreadsheet.StyleSelection(psheetBackgroundColor, LightRed)
Syntax
<Spreadsheet control>.SelectMinus([<Start cell> [, <End cell>]])
<Spreadsheet control>: Control name Name of Spreadsheet control to use. <Start cell>: Optional character string (with quotes) Name of the cell to deselect. This parameter has the following format: <Column letter><Row number>. For example: "A32". - If this parameter is not specified, all the cells as well as the row and column headers are deselected.
- If <End Cell> is specified, <Start Cell> corresponds to the first cell to deselect in a range of cells.
- If <End Cell> is not specified, only <Start Cell> is deselected.
<End cell>: Optional character string (with quotes) Name of the cell corresponding to the end of the range of cells to deselect. This parameter has the following format: <Column letter><Row number>. For example: "A32". - If this parameter is not specified, only <Start Cell> is deselected.
- If <End Cell> corresponds to a cell positioned before <Start Cell>, the coordinates are reversed and the deselection is performed.
Remarks - If a selection exists and it it has common cells with the selection performed by <Spreadsheet>.SelectMinus, the existing selection is entirely deselected (there is no hole).
- To select a single cell and to deselect the other ones, use the following syntax:
PSHEET_Spreadsheet = "A3"
- This function can only be used on a Spreadsheet control found in a window.
Related Examples:
|
Unit examples (WINDEV): The Spreadsheet control
[ + ] Using the Spreadsheet control. This example explains how to: - load an xlsx file in a spreadsheet control, - save the spreadsheet in a file, - fill the control with data coming from the database, - insert rows, columns, - access the cells and handle them (modify their value, their style, ...), - enter formulas, - ...
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|