Simple Macro to Copy From One Cell to Another

slovacek

New Member
Joined
Apr 1, 2013
Messages
2
This is probably really simple. I used the macro recorder copy the contents from E28 to B29. I want it to copy from column E to column B one row lower. The result of my macor only copies from E28 to B29 (again and again). How do I get it to do something like (go up one row and right three columns, copy the contents, move back down one row and left three, and paste).
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I've used that method before but the contents in Exx aren't always what I want to populate in Bxx+1. I'm working with a mileage log. B has Starting Mileage for a trip (like "Go to the bank") and E has the Arrival Mileage. So, in most cases, if the driver recorded things correctly, the Starting Mileage for the next trip (like "Return home from the bank") should be the same number as the number from the Arrival Mileage from the previous trip. However, there are times when the mileage doesn't get recorded or the paper the recording was written on gets misplaced. If I use the previous number, it can be misleading. So I want to have the macro so that, if, the mileage from E28 is what I'm looking for, I can just ctrl+macro letter and copy from E28 to B29.
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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