I can't get a call to the excel SORT function to work; I've tried variations of the following, but am not sure how to
call the "key1" variant; and don't know what the "Type_" OleVariant is in the third function call.
According to Microsoft (http://support.microsoft.com/default.aspx?scid=kb;en-us;229107) the documentation for Excel 97 is not correct, parameters Key2 and Type are switched. (it should be Type first, then Key2). You can use EmptyParam as Type for a normal sort, like I did in the sample code. (If the Excel macro doesn't specifiy a value, use EmptyParam)
This answer is a bit late, I posted this answer for documentation purposes.