In Excel 2007. How do I step through pivot tables on one worksheet and get the locaton of each.
Tried this but it return an error at XXXX
Sub CreatePictures()
Dim Pt As PivotTable
Dim Ws As Worksheet
Dim Loc(20) As String
Set Ws = Sheets("Summary pivots by DRG")
Ws.Activate
test = Ws.PivotTables.Count
x = 0
For Each Pt In Ws.PivotTables
x = x + 1
Loc(x) = Pt.Location 'XXXX
Next
End Sub
cheers
ziggy
Tried this but it return an error at XXXX
Sub CreatePictures()
Dim Pt As PivotTable
Dim Ws As Worksheet
Dim Loc(20) As String
Set Ws = Sheets("Summary pivots by DRG")
Ws.Activate
test = Ws.PivotTables.Count
x = 0
For Each Pt In Ws.PivotTables
x = x + 1
Loc(x) = Pt.Location 'XXXX
Next
End Sub
cheers
ziggy