Copy and paste text in last four rows

Winnietp

New Member
Joined
Jul 2, 2011
Messages
8
This is probably very simple, but I'm a newbie at creating macros and just can't figure it out.

I'm using Excel 2003 and need to find the last four rows in my spreadsheet (which will change daily), duplicate the text in column A and paste it into column B and C.

Thanks!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
1) Copy the last 4 values in column A
2) Paste into B and C where? In the same 4 rows?

Code:
Sub LastFour()
Dim LR As Long

    LR = Range("A" & Rows.Count).End(xlUp).Row - 3
    Range("A" & LR).Resize(4).Copy Range("B" & LR, "C" & LR)

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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