The reason for the failure is that you don't have a worksheet by the name of "C2". Therefore you can't select it.
"C1" looks like a cell address.
Before you can select a cell address you should indeed activate the sheet on which you want to select C1.
I prefer to use the sheet's
Activate property (rather than
Select) because in the next line you will refer to that sheet as
ActiveSheet. This code would seem to make sense:-
- Code: Select all
Sheets("Sheet Name").Activate
ActiveSheet.Shapes.Range(Array("Picture 1")).Select
Selection.Copy
' You can also replace it with this:-
Sheets("Sheet Name").Activate
ActiveSheet.Shapes.Range(Array("Picture 1")).Copy
Your next thought should be similar:
- Code: Select all
Sheets("MyReport").Activate
Range("B2").Select
ActiveSheet.Paste
However, you should only activate the sheet you want to see. For the Copy/Paste operation you don't need to activate or select anything. So, this will also work:-
- Code: Select all
Sheets("MyReport").Activate
Sheets("Sheet Name").Shapes.Range(Array("Picture 1")).Copy Destination:=ActiveSheet. Range("B2")
Have a great day!
Sisyphus
I do this for "honour and country" - much less of the latter, actually.
If I helped you, award points, plenty of them.
If I bored you, deduct points for being too long-winded. (I know, :lol)