Hi,

you don't have to copy the module code into the sheet. Your code looks absolutely fine. Can you post your file so that we can simulate your error.