I'm using the following VBA to insert a photo into a cell in Excel. The code runs, but inserts the photo twice, every time. I've debugged it by stepping thru one line at a time and it definitely loops thru the code twice before ending.
I've tried a couple of different methods to insert the photo and every method does the same thing. What am I missing?
Sheets("Sheet2").Select
ActiveSheet.Shapes("lightningbolt").Select
Selection.Copy
Sheets("Sheet1").Select
ActiveSheet.Range("$e$4").Select
ActiveSheet.Paste
ActiveSheet.Range("$A$1").Select
End Sub
I've tried a couple of different methods to insert the photo and every method does the same thing. What am I missing?
Sheets("Sheet2").Select
ActiveSheet.Shapes("lightningbolt").Select
Selection.Copy
Sheets("Sheet1").Select
ActiveSheet.Range("$e$4").Select
ActiveSheet.Paste
ActiveSheet.Range("$A$1").Select
End Sub