Copy and paste ranges of cells (more than 1 ranges) from one sheet to another sheet

thomsonreuters

New Member
Joined
Dec 9, 2017
Messages
26
Hi,

data present in sheet3
i want to copy ranges AF5 to AJ7 and paste into sheet6 at cell(2,5), like wise copy AL5 to AJ5 and No need copy from AR5 to AV5 since no data available.
All the data should be pasted under each paste.

i have attached the image..
Copy should be till last row based on AJ, AP and AV

i am using below codes, problem is cant copy if data present in one row or empty, it required data should present latest two rows in AJ, AP and AV (where i gave reference).

plese anyone help on this..its very urgent....advance Thanks for helping on this

Sheets("sheet3").Activate
N = Cells(5, 36).End(xlDown).Row
Range("AF5:AJ" & N).Select
Selection.Copy
Sheets("sheet6").Activate
With Sheets("Sheet6").Range("A" & Rows.Count).End(xlUp).Offset(1)
.PasteSpecial xlPasteValues
End With

Sheets("sheet3").Activate
N = Cells(5, 42).End(xlDown).Row
Range("AL5:AP" & N).Select
Selection.Copy
Sheets("sheet6").Activate
With Sheets("Sheet6").Range("A" & Rows.Count).End(xlUp).Offset(1)
.PasteSpecial xlPasteValues
End With

'CHMH4
Sheets("sheet3").Activate
N = Cells(5, 48).End(xlDown).Row
Range("AR5:AV" & N).Select
Selection.Copy
Sheets("sheet6").Activate
With Sheets("Sheet6").Range("A" & Rows.Count).End(xlUp).Offset(1)
.PasteSpecial xlPasteValues
End With
 

Attachments

  • Excel doubt.JPG
    Excel doubt.JPG
    101.2 KB · Views: 6

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Watch MrExcel Video

Forum statistics

Threads
1,129,736
Messages
5,638,071
Members
417,001
Latest member
MSteel

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
Top