Thanks for all replies. dbasnett: Your code works fine. But why the others doesn't?