Glad to help. It's too cold in my office to figure out why declaring x non-scalar caused a problem. Barton