Simple macro not working

Beau the dog

Board Regular
Joined
Mar 8, 2021
Messages
72
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: 7

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,869
Members
449,054
Latest member
juliecooper255

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