VBA to extract duplicates and copy in separate files

JW Tajonera

New Member
Joined
Jun 3, 2013
Messages
1
Hi,

For someone who is up to a challenge and unlike me who only has basic knowledge about VBA. I need help to create a macro that will do the following:

I am currently doing a project where I need to create a report and email them automatically using vba. Below is a sample of the raw data.
Name ExecutorIDData 2Email address
JohnIE0001asample1@example.com
JaneDR0001bsample2@example.com
JudeDR0002asample3@example.com
JakeIE0004bsample4@example.com
JulieIE0002bsample5@example.com


<tbody>
</tbody>

To create the report I need to be able to extract entire row of matched/duplicate data in Column C (ID) and copy them in separate excel files (i.e. base on sample data, extract entire row of entries for ID 0001 and copy it in one file, then 0002 in another so on so forth) using the IDs as file name while the worksheet where the data is copied should be named as "Raw Data."

After the matched data are copied into individual files. I need to insert the reporting template from a different file into each of the individual files (or maybe we could copy the report template into the new file the same time it copies the duplicate/match data into the "raw data" worksheet).

After the report templates are added I need to email the report to email addresses of the Dr's under the executor column.

I would really appreciate any help you can provide.

Thank you.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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