Please be kind, as I am new here and new to VBA in general. I have an Excel 2007 problem I’m trying to solve with macros and I’m hoping someone can help me with the code. Our company is structured as follows (except on a much larger scale, obviously):</SPAN>
<TBODY>
</TBODY>
<TBODY>
</TBODY>
I need to create a separate pivot table (in a separate tab) for each person. I have a tab with names and titles that I can use as a reference, but I don’t know how to write the code. Currently I’m manually creating a pivot for Supv A, going to the Names tab and filtering to get his employees, going back to the pivot and filtering by checking off the names, and then creating pivots for all checked. There has to be an easier way. I’d like be able to do it all with macros because of the number of people involved. I apologize for my convoluted explanation, but if anyone can help with code I’d be so grateful. </SPAN>
Mgr A | |
Supv A | Supv B |
Emp 1 | Emp 1 |
Emp 2 | Emp 2 |
Emp 3 | Emp 3 |
Emp 4 |
<TBODY>
</TBODY>
Mgr B | |
Supv C | Supv D |
Emp 1 | Emp 1 |
Emp 2 | Emp 2 |
Emp 3 | |
<TBODY>
</TBODY>
I need to create a separate pivot table (in a separate tab) for each person. I have a tab with names and titles that I can use as a reference, but I don’t know how to write the code. Currently I’m manually creating a pivot for Supv A, going to the Names tab and filtering to get his employees, going back to the pivot and filtering by checking off the names, and then creating pivots for all checked. There has to be an easier way. I’d like be able to do it all with macros because of the number of people involved. I apologize for my convoluted explanation, but if anyone can help with code I’d be so grateful. </SPAN>