Skip to content

ViewSelection

type ViewSelection = object;

A sheet’s selection state under a particular workbook view.

activeCell is the single focused cell (always present; defaults to 'A1' when no selection has been set). activeRanges is Excel’s multi-selection --- the list of contiguous ranges that make up the selection --- and is omitted entirely for a plain single-cell selection. When both are set, activeCell must be contained within one of the entries of activeRanges (Excel discards the entire activeRanges list otherwise).

activeCell: string;

optional activeRanges?: string[];

sheetName: string;