I don't know if you know any VB or not. But this might be of help.