VBA: Copying row to new workbook based on condition

yalie

New Member
Joined
Jun 29, 2011
Messages
2
Hi all,

In my current workbook, I have a table as follows
A B C D E
1 # @ xx ?
2 # @ yy ?
4 # @ zz ?
5 # @ ww ?

Looking at column D, I need to export rows with xx and yy to a new workbook, and zz,ww each to its individual workbook (new)
So 3 new workbooks total.

Thanks in advance for your help.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
thanks.
But do you actually have a script for vba script for what I'm trying to do?
Because I want to add in script so that once the data is parsed into different workbook, i want to email out the workbook to a list of recipients.

thanks.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,754
Members
452,940
Latest member
rootytrip

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