Just for the heck of it, I wrote a "quick and dirty" UDF code that
(*maybe*) could suit your requirements. You can find it here:
Sorry about the "lack of elegance" of the code. It is a quick adaptation of
an old routine I wrote a long time ago.
This mailing list archive is Copyright 1997-2015 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact