hi,
I need to find the current application setting for a sort function. is there a way to toggle the way a Sort function use xlDescending and xlAscending.
Sub SortPerCent()
Range("i119").Select
Sort
End Sub
Sub Sort()
a = xlDescending
b = xlAscending
if application.sortorder = a then not application.sortorder = a
Rows("119:133").Sort Key1:=Selection, order1:=application.sortorder , Header:=xlNo _
, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
I Know sortorder is not a vba function, but it is the best way to describe it. What i am trying to describe is that i need to find the last sort order and the toggle it to the opposite. Is this possible?
tks,
Bookmarks