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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,215,510
Messages
6,125,228
Members
449,216
Latest member
biglake87

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