Excel Macro to Create Individual Spreadsheets

jmarcsisin

New Member
Joined
May 4, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi All - I have a data table that contains the sales reps and corresponding managers in our organization. I am looking to create a macro that would look at the manager name in one column and create an individual workbook for that manager to review. In total, there are about 500 reps and 63 managers, so I would prefer to avoid the manual nature of creating 63 unique files (if i can avoid it).

Any guidance that you can provide would be greatly appreciated.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi,

Start by recording the following code:
Filter your data table for the first manager (I'd recommend sorting by Manager name if the table isn't already sorted)
Add a new sheet, name it
Copy the filtered visible cells (with header) to the new sheet

This will give you a start and then you can create a loop for the actions of:
Filter next manager name,
Add new sheet and re-name
Copy data actions

Post your code back if you need help with the loop part
 
Upvote 0
Does it change if I don't want a new sheet, but instead want a new workbook?
 
Upvote 0

Forum statistics

Threads
1,215,695
Messages
6,126,263
Members
449,307
Latest member
Andile

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