VBA: copy unique-value's rows to a template in loop

LarissaP

New Member
Joined
May 5, 2015
Messages
1
Hey guys!

I have this recurrent situation at work which I think could be fully automated by a macro, however, being a total newbie, I'm not able to do it by myself. Many thanks in advance for any help given =)

Every week I get a big report which lists the clients of each of our sales people and some data related to that. It has headers and columns A to K, column A being the Sales People names (we have 43 of them).
I also have another file (a Template) which organizes the data in a pivot with some conditionals to make it easier for the sales person to check their results (they can only see their own results!!)

What I need is a macro that:
-Filters the unique values on column A of my report
-Copies the unique-values' rows to the template, updating the pivot/conditionals
-Saves a copy of the updated template
-Does these actions in loop for each unique value


So, I should end up with my Template plus 43 files like my template, each with the data of a sales person.

Could anyone please support?

Cheers!

PS: I use Excel 2007
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,215,083
Messages
6,123,020
Members
449,092
Latest member
ikke

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