03aviator
New Member
- Joined
- May 31, 2011
- Messages
- 17
I have a pivot table that lists people with exceptions and I need to create a worksheet for each person on the list listing the exception details. This list will change daily - sometimes two or three people with exceptions, other times with fifteen or more people with exceptions.
How do I set up a macro to start with the first person on the PT list and create their worksheet, then step down to the next person on the list and so forth... each time I try to do this, only the first person's worksheet is created, and depending on the code it will just keep creating multiple copies of this first person or it will stop and do just one copy of the first person's sheet.
I realtively new to VBA but anxious to learn more.
The name of the worksheet with the PT is "Create Agent Files" with the pivot table starting on line 6. In column "A" is the person's name, and in column "B" is the amount of exceptions - which when "double-clicked" will create a sheet with the needed detail.
Please help!
How do I set up a macro to start with the first person on the PT list and create their worksheet, then step down to the next person on the list and so forth... each time I try to do this, only the first person's worksheet is created, and depending on the code it will just keep creating multiple copies of this first person or it will stop and do just one copy of the first person's sheet.
I realtively new to VBA but anxious to learn more.
The name of the worksheet with the PT is "Create Agent Files" with the pivot table starting on line 6. In column "A" is the person's name, and in column "B" is the amount of exceptions - which when "double-clicked" will create a sheet with the needed detail.
Please help!