I am new to VBScript but impressed with its the power.
I am trying to sort three columns of data in Excel using VB Script. By cheating using Excel, I recorded a marco and viewed the results in the VB Editor. I get these results
Rows("1:1".Select
Selection.Sort Key1:=Range("B2", Order1:=xlAscending, Key2:=Range("C2" _
, Order2:=xlAscending, Key3:=Range("D2", Order3:=xlAscending, Header:= _
xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub
I think in VBScript the sort starts something like this
objXL.Rows(1, 1).Select
objXL.Selection.Sort
Stuck after this
Thanks
I am trying to sort three columns of data in Excel using VB Script. By cheating using Excel, I recorded a marco and viewed the results in the VB Editor. I get these results
Rows("1:1".Select
Selection.Sort Key1:=Range("B2", Order1:=xlAscending, Key2:=Range("C2" _
, Order2:=xlAscending, Key3:=Range("D2", Order3:=xlAscending, Header:= _
xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub
I think in VBScript the sort starts something like this
objXL.Rows(1, 1).Select
objXL.Selection.Sort
Stuck after this
Thanks