paste photos with macro error 1004

AHMADIT986

New Member
Joined
Oct 21, 2015
Messages
2
hi everyone

when I use macro for copy and paste photo in excel 2013 I received error 1004
i click debug and just click F5 without any change ,after that macro complete command.
what should I do to avoid this problem
Code:
Sub Tester()    Sheets("STATS").Select
    Range("B223:K244").Copy
    Sheets("photos").Select
    Range("b223").Select
    ActiveSheet.Pictures.Paste Link:=True
    Application.CutCopyMode = False
End Sub
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hello and welcome to the Board

This executed well from the VBE and also from the sheet’s macro dialog box:

Code:
Sub Tester()
    Sheets("STATS").Activate
    Range("B22:K29").Copy
    Sheets("photos").Activate
    Range("b22").Activate
    ActiveSheet.Pictures.Paste Link:=1
    Application.CutCopyMode = False
End Sub
 
Upvote 0
Hello and welcome to the Board

This executed well from the VBE and also from the sheet’s macro dialog box:

Code:
Sub Tester()
    Sheets("STATS").Activate
    Range("B22:K29").Copy
    Sheets("photos").Activate
    Range("b22").Activate
    ActiveSheet.Pictures.Paste Link:=1
    Application.CutCopyMode = False
End Sub


Thank you very much :)
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top