thanx evrybdy, all of u have helped me a lot. both the macro definition and the simple excel feature described by u did the trick. thnx again