You could train your new set of eye to check the UDF Library before writing your own function. It's much faster to copy an existing and tested UDF, though the learning experience is less [Wink]
_________________________
There are two types of vessels, submarines and targets.