Search then copy then paste Macro

Mgmy04

New Member
Joined
Jun 6, 2012
Messages
25
Hello,

I need to design a macro and I don't know where to start. What I want the marco to do is to look for a value in a column on my source workbook. If it finds that value I want it to copy the entire row into a different workbook. With each Value going to a different sheet. Example:

Source:
Column A
10
20
10
15
20
10


Everytime the number 10 shows up, I want that entire row copied and pasted to my new workbook and its corresponding sheet.

New Workbook

Sheet 10
10
10
10

Sheet 20
20
20

Sheet 15
15

Thank you in adavnce for your help.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Are the values in Column A of your source constant values or values that result from formulas?
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,239
Members
448,951
Latest member
jennlynn

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