1

I'm getting an intermittent error (1004 Microsoft Excel cannot paste the data) upon trying to paste an image in Excel as part of a larger VBA code. It's strange because it's only happening some of the time and I haven't been able to identify why. The error handling is also not working, the code is breaking on the paste line.

picTab.range("imageRNG").Copy

On Error GoTo picProblem:  
     picTab.Pictures.Paste  
On Error GoTo 0
BigBen
  • 46,229
  • 7
  • 24
  • 40
ELW
  • 380
  • 2
  • 19

0 Answers0