Hey all,
I am trying to pull back all account manager names that have a census count >0 to a different sheet in my Workbook so that I can use it as a control to populate other info on my report.
I by no means very fluent with VBA and have run into a few problems.
First off I have 3 slicers that control my back end pivot table and each time the pivot table updates I want my code to run to change the list of AM names.
The current error that I am getting is Compile Error: Type Mismatch
My second issue that I am having is trying to figure out how to pull back only the account manager name where there is a census cnt > 0
When I try and use the code to get the data within the pivot table DataFields(i).PivotItems(j) it doesnt work and is telling me the following:
Compile Error: Type Mismatch
I think it has something to do with how I am defining my AMCnt but I am not sure what else to call it but Long.
Here is my current code: (attached are 2 screen shots of my report and the source pivot that I am using)pivot table.JPGreport.JPG
![]()
Please Login or Register to view this content.
Any help you can provide is greatly appreciated.
Thanks in advance
Bookmarks