Hi,
Is it possible to write a code line that pastes a picture from worksheet A to worksheet B, whose name starts with "Sheet.....". I have multiple sheets named "Sheet1", "Sheet2", "Sheet3" etc. and I only want to copy&paste one picture to the first sheet that comes up first. and I can't use Worksheets("Sheet1") because the number changes everytime since the macro deletes and creates sheets while looping through a new filter.
I'm looking for something like 'Paste the picture to this sheet if it is the first sheet that starts with name "Sheet". Or 'Paste the picture to a sheet whose name starts with "Sheet" and followed by the lowest number, e.g. in case of workbook containing "Sheet13", "Sheet14","Sheet15","Sheet16", the macro would paste the picture to "Sheet13".
Is it possible to write a code line that pastes a picture from worksheet A to worksheet B, whose name starts with "Sheet.....". I have multiple sheets named "Sheet1", "Sheet2", "Sheet3" etc. and I only want to copy&paste one picture to the first sheet that comes up first. and I can't use Worksheets("Sheet1") because the number changes everytime since the macro deletes and creates sheets while looping through a new filter.
I'm looking for something like 'Paste the picture to this sheet if it is the first sheet that starts with name "Sheet". Or 'Paste the picture to a sheet whose name starts with "Sheet" and followed by the lowest number, e.g. in case of workbook containing "Sheet13", "Sheet14","Sheet15","Sheet16", the macro would paste the picture to "Sheet13".