select, copy and delete rows

Albusaidi

New Member
Joined
Aug 31, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
  2. Mobile
  3. Web
Hi All,
I'm new to VBA, I have a range of values (unique value for each person) I want excel to know the exact value and select it in (sheet1) then copy the entire row
of that value to (sheet2) and delete that row from the (sheet1).
can you please provide me with correct VBA code?

Thank you..
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
What are the vaules you need to identify....can you post a SMALL sample of your data and which ones need to be moved ??
 
Upvote 0
What are the vaules you need to identify....can you post a SMALL sample of your data and which ones need to be moved ??
Here is a sample of my data, if you can see the full table in sheet1, each person has a unique value. I want excel to take the id from sheet2, column ( Removed id) and match them to the the id in table of shhet1. After it matches copy the entire row to new sheet and delete that row from the original sheet which is sheet1.
sheet1.pngsheet2.png
Thank you..
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,176
Members
448,554
Latest member
Gleisner2

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