I am trying to sort some worksheets after creating them and filling them with some data. I have looked at MSDN for the method and think that this should work:

$oXL.Worksheets("Sheet1").Range("A5 $i").Sort Key1:=Worksheets("Sheet1").Range("C5")

Anyone else doing this ?

Thanks in advance.