VBA - Match and Cut & Paste

syhros

New Member
Joined
Aug 15, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi all!

I've never really been any good with VBA and I'm looking for help with what I think is quite a simple problem. I have 2 sheets named 'Special Orders' and 'Allocation'. In special orders I have all of the orders that have ever been done and this is nearing 3000 lines. To simplify reading this I've created another sheet called 'Allocation' where it only shows orders that haven't been collected so this is only 100 lines long, I've pulled this using this Filter function:

=IF(ISBLANK(FILTER('Special Orders'!B1:K9998,('Special Orders'!C1:C9998=B2)+('Special Orders'!C1:C9998=B3),"")),"",FILTER('Special Orders'!B1:K9998,('Special Orders'!C1:C9998=B2)+('Special Orders'!C1:C9998=B3),""))

I've attached an example of the sheets below. What I'd like to do is use VBA to select any any data in 'Allocation' Column M, cut the cell, Match the ID in 'Allocation' with 'Special Orders' to find the row and finally paste the cut data into that row in Column L of 'Special Orders'.

Excel-1.png
Excel-2.png
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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