2.4.248 Selection

The Selection record specifies selected cells within a sheet. There can be multiple contiguous Selection records that have the same pnn value to specify all selected cells within a sheet<116>. If this is the case, the values of rwAct, colAct, and irefAct MUST be the same across all the contiguous Selection records that have the same pnn value.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

pnn

rwAct

colAct

...

irefAct

cref

...

rgref (variable)

...

pnn (1 byte):  A PaneType enumeration that specifies the active pane.

rwAct (2 bytes):  An RwU structure that specifies the zero-based row number of the active cell.

colAct (2 bytes):  A ColU structure that specifies the zero-based column number of the active cell.

irefAct (2 bytes):  A signed integer that specifies the zero-based index to the RefU structure in rgref that contains the active cell. MUST be greater than or equal to 0. If this record is one of multiple contiguous Selection records, this value is the index to the RefU structure across the aggregation of rgref arrays of all Selection records.

cref (2 bytes):  An unsigned integer that specifies the number of RefU structures in the rgref array of this record.

rgref (variable): An array of RefU structures that specifies ranges of selected cells in the sheet. The number of RefU structures in this array MUST be less than or equal to 1369.