chriscorpion786
Board Regular
- Joined
- Apr 3, 2011
- Messages
- 106
- Office Version
-
- 365
- Platform
-
- Windows
Hi All,
The below code does not work, when I use it from the VB editor and use F8 it works, but if I click on run or use it from the sheet, it dosen't and throws up an error: "method paste of object' Worksheet failed.
Any clue whats happening.
The below code does not work, when I use it from the VB editor and use F8 it works, but if I click on run or use it from the sheet, it dosen't and throws up an error: "method paste of object' Worksheet failed.
Any clue whats happening.
VBA Code:
Sub moveshapes()
Dim shp As Shape
For Each shp In Sheet1.Shapes
shp.Copy
Sheet2.Paste Cells(4, 5)
Next shp
End Sub