PEAR Manual
Prev |  | Next

# Worksheet::setSelection

Worksheet::setSelection -- Set which cell or cells are selected in a worksheet

## Synopsis

    require_once "Spreadsheet/Excel/Writer.php";

``void Worksheet::setSelection` (integer $first_row, integer $first_column, integer $last_row, integer $last_column)`

## Description

Set which cell or cells are selected in a worksheet

## Parameter

- `integer $first_row` - first row in the selected quadrant

- `integer $first_column` - first column in the selected quadrant

- `integer $last_row` - last row in the selected quadrant

- `integer $last_column` - last column in the selected quadrant

## Note

This function can not be called statically.

## Example

Example 37-1. Using setSelection()

Prev | Home | Next
Worksheet::setColumn | Up | Worksheet::freezePanes