Copy Cell to a row with corresponding number

anyrandomtech

New Member
Joined
Feb 2, 2025
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Looking to do an inventory setup in excel. As of right now I have a row E4: U4 being the data I am trying to copy. E4 is going to be my inventory number. Below is inventory list starting from E10 to E(infinite) is my inventory number. I want E4 to set the inventory number. Lets say 1001, the VBA copies the range F4:U4 and then inserts it down below where the cell has 1001. Or can i have paste the value to the next empty cell of a range? So if E12 :U12 already has date, it would paste the next set of data at E13:U13.

Currently I have my VBA copying the range F4:U4, then inserting it to where a name cell is, you can see it on the green side on the left side. This doesn't work if i mess up and i have to delete the row above it. it will just keep moving it down, unless i delete the renamed cell, and reassign the name to the cell above it.


VBA Inventory Cell.jpg
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,226,509
Messages
6,191,450
Members
453,658
Latest member
healmo

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