Select to end multiple columns

Klturi421

Board Regular
Joined
Aug 31, 2014
Messages
52
I have data stored in Columns A through AZ but only want to copy A,B, and C to the last cell.

I was using
Rich (BB code):
 Range(Range("A5"), Range("A5").End(xlDown)).Select 


However, if I try adding the cells it does not copy those ranges. Is there a way that I can achieve this with the code I provided or is there a different method to achieve this?


 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Normally you would write a script sort of like this:

Sub Me_And_You()
Dim i As Long
Dim Lastrow As Long
Dim Lastrowa As Long
Lastrow = Sheets("Master").Cells(Rows.Count, "A").End(xlUp).Row
Lastrowa = Sheets("Data").Cells(Rows.Count, "A").End(xlUp).Row + 1
For i = 1 To Lastrow
Sheets("Master").Range("A" & i & ":C" & i).Copy Destination:=Sheets("Data").Range("A" & Lastrowa)
Lastrowa = Lastrowa + 1
Next
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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