Hi I have an excel sheet with given below format

Region  type    Error descr
APAC    type1   Error1
APAC    type1   error1
APAC    type1   error2
APAC    type2   error3
APAC    type3   error3
APAC    type 3  error4
APAC    type4   error 4
US      type1   Error1
US      type1   error1
US      type1   error2
US      type2   error3
US      type3   error3
US      type 3  error4
US      type4   error 4

I am converting it into pivot to find the each region & type wise
error counts. when I am trying to read the count of each error type I
am not able to get based on region & type wise error count when i am
using the following code.

Sub ListAllItemObjects()
For Each pvt In ActiveSheet.PivotTables
For Each fld In pvt.PivotFields
For Each itm In fld.PivotItems
MsgBox itm & item.recordcount 'display over all error count not
specific to region& type
Next itm
Next fld
Next pvt
End Sub


Can any one help to solve this.

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wall&ref=ts

Reply via email to