Can you please point me to a working example of a HeapSort VBA function I can cut and Paste into my XLS doc? Thanks, Stefano