Hi, first, i’m French, excuse me for my poor english… I’ll try to keep it simple
I’m trying to create a macro which is able to sort a table
In the documentation, there is no example of a similar macro available
Again in the documentation, the method exist : SetSort
So i tried to write this :
(function()
{
var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange(“A1:A24”);
oRange.SetSort(“1”,“xlAscending”);
})();
The system well executes the macro, but is crashing immediately after
Can anyone helps me ? Is a probleme in the parameters of the method SetSort ?
THANKS A LOT