Link Search Menu Expand Document

SSpread.BeforeColMove Event

Occurs when the user tries to move a column by dragging and dropping.

※ The movement of the column has not been completed when this event occurs. Use the AfterColMove event if you want to perform processing that is expected after the column has been moved.

The following child objects are attached to the Event object.

Type Name Description
Number Col Column number of the column to move
Number ColDest Column number of the destination column

Example of usage

AllowColMove = $TRUE;
Function OnBeforeColMove (e) {
    MessageBox ( strf ("Move from% 1st column to % 2nd column ", e.Col , e.ColDest ));
}

Related Item
AllowColMove property
AfterColMove event