Cool thanks guys! I tried out the UDF on WK3 and it worked great.

I think this function would be a great addition to the UDF Forum. I can see how this can be used individually (like my program).