Hi david,

Welcome to the board!

Nice of you to share your UDF, I'm sure it can help others.

But... ah, the famous but ... could you take a look at the other postings on this forum and edit your post so that the properties of the function are clear?

You might want to describe the function with an explanation of the parameters and what it returns.

If you'd like some help with it, you know were to find me

_________________________
The Code is out there