Better method to distribute 40 worksheet to individuals

tsunami1977

Board Regular
Joined
Jan 24, 2005
Messages
64
Hello!

I have a master file where we track activities of the entire US region. In this file, we have the US data which then feeds into 40 worksheets (one sheet for each individual sales rep). Each week I need to distribute the 40 worksheets to each individual but only his/her own data.

Right now I save the master file as 40 individual files and then delete all the other worksheets before sending it out.

Other than saving the file 40 times, is there an easier way to do this?

Any suggestion would be helpful.

Thank you!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Well you could use code to create a new workbook for each worksheet.

Something like this perhaps.
Code:
Dim wb As Workbook
Dim ws As Worksheet

For Each ws In ThisWorkbook.Worksheets
     ws.Copy
     Set wb = ActiveWorkbook
     wb.SaveAs ws.Name & Format(Date, "mmmyy")
     wb.Close
Next
 
Upvote 0
I've done this before for 3 people but it should work the same for 40.
I assigned each sheet the name of the Sales Rep. Then set up an emailing Sub where I list all Sales Rep names and their email addresses. Using a case statement:

Code:
Case Rep1
      .Sheet EmailTo:Rep1
Case Rep2
      .Sheet EmailTo:Rep2

etc.

This is the idea. If I can find the code I will post for you.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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