IF you look at this thread, at the very bottom I posted the code to do what it is I believe you are looking for:
thread700-662265
vree
www.groundworkssoftware.com
"For a succesful technology, reality must take precedence over public
relations, for nature will not be fooled."
R.Feynman