I would suggest looking in the UDF Forum and you will find many options there to give you a head start on what you are attempting.
_________________________
Today is the tomorrow you worried about yesterday.