rrocker1405
Member
Hi team,
I'm very sure that I'm doing something wrong in the below code because of which everytime it shows up debugging error stating 'copy method of range class failed'. Any suggestions / advise?
I'm trying to copy the range E4:N4 to E6:N60000 with formulas in the same worksheet.
I tried the following aproaches to replicate formulas but in vain.
sub copy()
Worksheets("sheet1").Range("e4:n4").Copy _
Destination:=Worksheets("sheet1").Range("E6")
'then use autofill to range ("E6:N60000")
end sub
Example 1>
Range("E4:N4").Copy Destination:=Range("E6:N60000")
Example 2>
Sheet9.Range("e4:n4").Copy
Sheet9.Range("e6:n6").PasteSpecial xlPasteFormulas
Application.CutCopyMode = False
Example 3>
Sheets("P_Data").Select
Range("e4:n4").Copy
Sheets("P_Data").Select
Range("e6:n6").PasteSpecial xlPasteFormulas
Thanks in advance.
Kind Regards,
A!
I'm very sure that I'm doing something wrong in the below code because of which everytime it shows up debugging error stating 'copy method of range class failed'. Any suggestions / advise?
I'm trying to copy the range E4:N4 to E6:N60000 with formulas in the same worksheet.
I tried the following aproaches to replicate formulas but in vain.
sub copy()
Worksheets("sheet1").Range("e4:n4").Copy _
Destination:=Worksheets("sheet1").Range("E6")
'then use autofill to range ("E6:N60000")
end sub
Example 1>
Range("E4:N4").Copy Destination:=Range("E6:N60000")
Example 2>
Sheet9.Range("e4:n4").Copy
Sheet9.Range("e6:n6").PasteSpecial xlPasteFormulas
Application.CutCopyMode = False
Example 3>
Sheets("P_Data").Select
Range("e4:n4").Copy
Sheets("P_Data").Select
Range("e6:n6").PasteSpecial xlPasteFormulas
Thanks in advance.
Kind Regards,
A!