Thank you so much. This worked great. I had RMin and Rmax declared as Long variables. I can't believe I missed something like that! Thanks.