fires before applying a new style for a cell
| row | number | the ID of the row |
| column | number | the ID of the column |
| style | object | the new style for a cell |
| oldStyle | object | the old style of a cell |
| page | string | the name of the sheet |
| boolean | returning false will prevent applying a new style for a cell |
$$("spsheet1").attachEvent("onBeforeStyleChange", function(row,col,style,oldSt,page){
// some code here
return true;
});
The event is not called for pasting copied data. Use onBeforePaste instead.