ViewSelection
type ViewSelection = object;A sheet’s selection state under a particular workbook view.
activeCell is the single focused cell (always present; resolved from the
activeRanges when only those are stored, and 'A1' when neither is).
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).
Properties
Section titled “Properties”activeCell
Section titled “activeCell”activeCell: string;activeRanges?
Section titled “activeRanges?”activeRanges?: string[];sheetName
Section titled “sheetName”sheetName: string;