Hi Roger,

I have no idea what happened, I opened the files in another computer and the VBA dissapeared, then I reinstalled excel in my computer and now the VBA also disappeared.
Thank you for the code, I just introduce it in my spreadsheet, and it is working the way I wanted. Thanks a lot.

Sorry about not using the codetags arround the code, it won't happen again.

Cheers,

Rod