Welcome to the forum.

Post the workbook with your code.