Have a look at this link:
http://xcell05.free.fr/english/
You can download an .xll add-in that is written in C.
One of the functions will sort a range for you.
I think the source code is available somewhere as well.
RBS
"JR" wrote in message
...
I am trying to sort a range in a C++ dll, but cannot seem to get the
parameters correct. I always receive an 'Unhandled Exception' error.
I was hoping somebody has a working example so I could see what your
parameters look like.
Thanks,
Jeremy