Hi,

Thanks for your reply.

Now I am getting an error - "error 13 type mismatch" after using your code.