Marshalls said:Right sorry i didnt see that, anyways i ran the code and get a blank message box with the ok button.
Sub Test()
Dim PItem As PivotItem
Dim Msg As String
For Each PItem In ActiveSheet.PivotTables("Downtime").PivotFields("[All Workcentres]").PivotItems
Msg = Msg & PItem.SourceName & vbCrLf
Next PItem
MsgBox Msg
End Sub
Marshalls said:exactly the same thing
Sub Test()
Dim PItem As PivotItem
Dim Msg As String
For Each PItem In ActiveSheet.PivotTables("Downtime").PivotFields("[All Workcentres]").PivotItems
Msg = Msg & PItem.Value & vbCrLf
Next PItem
MsgBox Msg
End Sub
Marshalls said:nope same again hmmm
Marshalls said:Ok thanks anyway Andrew and do you know if there is a control i can use to replicate the one on the pivot table where you can drill down into specific regions,sites ect ect