in reply to Win32::OLE question using Excel

Try something like:
# Order Rows $tmp = "$mylastcol2".'3'; $Rangea = $Sheet->Range("a1"); $Rangeb = $Sheet->Range("a5"); $Excel->Selection->Sort({Key1 => $Rangea, Order1 => xlDescending, Key2 => $Rangeb});

Though i never can find much documentation on the sort function, so you may need to play around with it a bit.

edit - also found a sort example:
here

Replies are listed 'Best First'.
Re^2: Win32::OLE question using Excel
by ssn642 (Initiate) on Oct 17, 2007 at 20:13 UTC
    Thank you for the quick response. I will see what I can work out with the examples that you sent me. Much appreciated!