Copy range without header and past it after particular row

ekslit

New Member
Joined
Apr 10, 2020
Messages
48
Hello guys,

I'm stuck a little bit and need you help :)

Right now, i m able to copy range content with header and past it in another worksheet and this is my code

VBA Code:
'Workbooks("Projects.xls").Worksheets("Projects").Range("A:G").Copy Workbooks("Suivi.xlsx").Worksheets("LogPMReports").Range("A:G")

What i m trying to achieve now is copy range (A:G) without header and past it after row number 290.

Can you please help me with this ?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
VBA Code:
With Workbooks("Projects.xls").Worksheets("Projects")
    Intersect(.UsedRange.Offset(1), .Range("A:G")).Copy Workbooks("Suivi.xlsx").Worksheets("LogPMReports").Cells(Rows.Count, 1).End(xlUp)(2)
End With
 
Upvote 0
Thank you very much @JLGWhiz

As i want to past content from row 290 and + then this should be:

VBA Code:
Worksheets("LogPMReports").Cells(Rows.Count, 1).End(xlUp)(290)

M i right?
 
Upvote 0
I assumed that row 289 was your last row with data. If Not then
VBA Code:
Worksheets("LogPMReports").Range("A290")
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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