OK I got it - thanks everyone for your help.

As it happened something about the select case methodlogy was the problem. When I switched it back to way I had it orginally, but with all the necessary prerequises and UDF's it worked perfectly. Is it appropriate for me to repost the code in its entirity?

Thanks so much for the help.