Hello JD,

Your code as shown is correct. It probably is something simple. It will easier and faster to find the problem if you post your workbook.