Simple macro not working

Beau the dog

New Member
Joined
Mar 8, 2021
Messages
31
Office Version
  1. 365
Platform
  1. Windows
Hi

I never use macros and I don't know a lot about them. But I thought I could do a simple one! Basically I'm trying to copy data from a cell on one tab to an archive tab. I've tried a macro because I want to keep the data in the archive tab and keep adding to it. The first 4 columns in the archive tab have descriptive data already.

So for example...
So I started the macro - selected the cell (H4) - right click and copy - select archive tab - select A1 - hold control and press right - press right one more time (to get to the first empty cell (this is E5 to start with) - right click and paste - end macro

When I run the macro it just pastes the data into the same cell (E5) each time, whereas I want it to keep going right to the next empty cell. I thought that hold control and press right - press right one more time woulds fix that issue? Macro screenshot below.

Any help appreciated?
 

Attachments

  • SnipImage-2.JPG
    SnipImage-2.JPG
    15.9 KB · Views: 6

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Beau the dog

New Member
Joined
Mar 8, 2021
Messages
31
Office Version
  1. 365
Platform
  1. Windows
Hi

I never use macros and I don't know a lot about them. But I thought I could do a simple one! Basically I'm trying to copy data from a cell on one tab to an archive tab. I've tried a macro because I want to keep the data in the archive tab and keep adding to it. The first 4 columns in the archive tab have descriptive data already.

So for example...
So I started the macro - selected the cell (H4) - right click and copy - select archive tab - select A1 - hold control and press right - press right one more time (to get to the first empty cell (this is E5 to start with) - right click and paste - end macro

When I run the macro it just pastes the data into the same cell (E5) each time, whereas I want it to keep going right to the next empty cell. I thought that hold control and press right - press right one more time woulds fix that issue? Macro screenshot below.

Any help appreciated?

"right click and copy - select archive tab - select A1"

This should A5
 

Forum statistics

Threads
1,141,410
Messages
5,706,293
Members
421,439
Latest member
JordsdoExcel

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
Top