Roderick_E
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 2,051
Trying to replace a picture/shape in one spreadsheet with one in another.
It fails on the red line: Object doesn't support this property or method. I thought I could change all the pics this way. Ideas? Thanks
Code:
'loop through all images
For Each s In wbk.Sheets(1).Shapes
[COLOR=#ff0000][B]s.picture = loadpicture(ThisWorkbook.Sheets(1).Shapes("Picture 1").Picture)[/B][/COLOR]
Next
It fails on the red line: Object doesn't support this property or method. I thought I could change all the pics this way. Ideas? Thanks