Are you using this code in workbook1 while the sheet3 is in workbook2? (workbook1 and 2 are just example names).