ThX Edneeis,

but it gives a type mismatch error at 'Not' from the code u posted...

Cheers...