GfK #1 Yeah, that works.Can also use:Select True Case a >= 1 and a <= 10 'do stuff Case a >= 11 and a <=20 'do some other stuff End Select