I have several macros which copy and paste images when certain cell values are changed.
Stepping through the code works fine but running by addressing a cell sometimes gives the following error:
Run-Time error '1004':
Paste method of Worksheet class failed.
I use the following code to copy images:
With Sheets("Quote")
.Shapes("ExampleQuoteImage").Copy
.Activate
.Paste Destination:=Range("A102")
End With
The error doesn't occur on my development machine but does on some users machines.
It doesn't break at the same line every time but will break at any points where an image is copied. The rest of the macro runs normally if run it from the point at which it breaks.
Could it be a concurrency error or something to do with the clipboard?