Link Search Menu Expand Document

SSpread.Clicked Event

Occurs when the left mouse button is clicked on a cell.

The following child objects are attached to the Event object.

Type Name Description
Number Col Column number of the cell where the left mouse button was clicked
Number Row The row number of the cell where the left mouse button was clicked
Number ShiftKey 1 if the Shift key is clicked, 0 otherwise
Number CtrlKeyKey 1 if the Ctrl key is clicked, 0 otherwise
Number AltKey 1 if the Alt key is clicked, 0 otherwise
Number xPos X coordinate of mouse pointer
Number yPos Y coordinate of mouse pointer

If the MoveActiveOnFocus property is $FALSE, no event will be fired when the spreadsheet is clicked and focused.

The event does not occur in the cell whose input mode is ON (edited state).

Example of usage

Function OnClicked (e) {
    MessageBox (strf ("(% 1,% 2) cell was clicked ", e.Col, e.Row));
}

Related Item
DoubleClicked, LButtonUp, RButtonUp, RClicked, RDoubleClicked event