VBA needed to separate data into different tabs/worksheets

XLWiz

New Member
Joined
May 7, 2015
Messages
29
Hello all,

I've been scouring the VBA threads on this forum but have been unsuccessful in finding what I need, thus far.

Working with Excel 2013, I've been trying to develop code that will segregate a massive spreadsheet I report on weekly, into different worksheets/tabs, based on column J and column AK of the file.

Column J has a header I have labeled as "Relationship (No Codes)" with rows of data arranged by "Employee", "Spouse", and "Child". Column AK is labeled as "Benefit Plan Name" and has data arranged by "Dental/Vision Plan", "Plan B: Major Medical Plan", "Plan C: Major Medical Plan" and "Waived Medical Coverage".

What I need, is code that will enable me to automatically separate this data into different tabs containing only Employee Medical, only Employee Dental, only Employee Waived Coverage, and the same arrangements for all other relationships.

Could someone please advise? Thank you very much for your time.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Instead of separating the data, it's usually to keep it all in one place. If you create a pivot table with the fields you want separated in the Report Filter section you can then use the "Show Report Filter Pages" option, which will create a new pivot table worksheet for each item in the list.

This way when you add data to the master sheet all you need to do is refresh the pivot tables.

HTH,
 
Upvote 0
Instead of separating the data, it's usually to keep it all in one place. If you create a pivot table with the fields you want separated in the Report Filter section you can then use the "Show Report Filter Pages" option, which will create a new pivot table worksheet for each item in the list.

This way when you add data to the master sheet all you need to do is refresh the pivot tables.

HTH,

Hey Smitty,

Thanks for your response. I don't think a pivot table would help me out in this instance, however. After I separate the data into individual worksheets, I use them as lists for a mail merge Word document I produce.

I'll keep your idea in mind for future use, if the report I generate ever turns into a document I simply keep on Excel.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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