Hi,
The original code should do that since there is no reference to a sheet.
Incidentally and I know you don't want to restrict this to sheet 1 but your example code would not work for sheet1 anyway since you had not specified the sheet reference in the right place.
instead of
you should have used
..and another incidentally. Remember that there is a subtle difference between Sheets(1) and Sheet1.
The former references the first tab sheet name starting from the left. If the sheet name 'Sheet2' happens to be the first sheet that's the sheet that will be referenced with Sheets(1).
The latter is the reference to the VBA sheet code name and will always reference the sheet wherever it happens to be physically located.
HTH
Bookmarks