Nothing stopped working, I just want to add the sort function to my script and I can't seem to figure out how to make it work (specify the range, the method of sorting and so on). Everything else I wanted to do with ActiveX I've been able to figure out, I just can't seem to figure out the exact code needed to do this.
Here a rough example of what I've been trying:
Dim Excel : Set Excel = CreateObject("Excel.Application") : Excel.Visible = TRUE
Excel.Workbooks.Open("C:\Users\Kevin_McG\Desktop\Sort Test.xlsx")
Excel.Range("A1:A10").Select
Excel.Selection.Sort("Key1:=Range(A1:A9},Order1:=xlAscending")
It's the Excel.Selection.Sort(...) that I can't work out.