Hi all,
in a VBA code I am sorting data:
objWorksheet.Range("A8:F250".Sort _
Key1:=objWorksheet.Range("A8", _
Order1:=xlAscending, _
Header:=xlNo, _
OrderCustom:=6, _
MatchCase:=False, _
Orientation:=xlTopToBottom
The CustomOrder:=6 prescribe sort-order to be:
1Z1
1Z2
1Z3
1Z10
1Z11
This sort-order is working fine from Excel; but from VBA-code the sort result is:
1Z1
1Z10
1Z11
1Z2
1Z3
Why ???
Any help would be appreciated.
Best regards
Claus
in a VBA code I am sorting data:
objWorksheet.Range("A8:F250".Sort _
Key1:=objWorksheet.Range("A8", _
Order1:=xlAscending, _
Header:=xlNo, _
OrderCustom:=6, _
MatchCase:=False, _
Orientation:=xlTopToBottom
The CustomOrder:=6 prescribe sort-order to be:
1Z1
1Z2
1Z3
1Z10
1Z11
This sort-order is working fine from Excel; but from VBA-code the sort result is:
1Z1
1Z10
1Z11
1Z2
1Z3
Why ???
Any help would be appreciated.
Best regards
Claus