it would help if you answered the question
which line?
though from your picture you have no sheet with name of sheet2, change code to suit