SpreadsheetDocument.Area
Syntax variant: By name
Syntax:
Parameters:
<AreaName> (required)
Area name or address in "R1C1:R2C2" format where a number that follows "R" denotes a row number, while a number after "C" denotes a column number by ":" symbol (colon) coordinates of the left-hand top and right-hand bottom area corner are divided. You can also transfer overlapping of two areas as a name that is written as "<Area Name 1> | <Area Name 2>".
Syntax variant: By address
Syntax:
Parameters:
<FirstRowNumber> (optional)
Number of the first table area row.
If there is no such row, then an area consisting of columns is specified.
<FirstColumnNumber> (optional)
Number of the first table area column.
If there is no such column, then an area consisting of rows is specified.
<LastRowNumber> (optional)
Number of the last table area row.
If an area of columns is selected (the <FirstRowNumber> parameter is not specified), then number of row, from which the string format is obtained, is specified.
<LastColumnNumber> (optional)
Number of the last table area column.
Description of method variant:
Returned value:
Description:
Availability:
Example:
CalledArea = Spreadsheet.Area("Header"); Cell = Spreadsheet.Area("R2C5"); RectangularAreaOfCells = Spreadsheet.Area("R2C2:R3C5"); RowArea = Spreadsheet.Area("R2"); RowsArea = Spreadsheet.Area("R2:R4"); ColumnArea = Spreadsheet.Area("C4"); ColumnsArea = Spreadsheet.Area("C4:C5"); |
See also: