I have set up a userform for a context sensitive sort routine which selects the relevant sort keys (up to 3) and sets ascending/descending order. However. from this I need to be able to "build" the sort. I know the basic syntax eg
I can vary the ranges to what I want (using Range (cells(x,y),cells(w,z))notation) but I need to be able to set the order for each sort key to either ascending or descending, and I need to be able to set up up to 3 sort keys. I can build up a suitable string to define the sort that I want but don't know how to "attach" the result to the sort statement. eg if I build
...etcetc"
I can't simply type selection.sort sort$. How can I do it
Any help greatly appreciated
Bookmarks