Dynamic Pivot table range
Just trying to give an idea (not tried the code)
Maybe something like
Set PTCache = ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, _
SourceData:=Activesheet.Range(Activesheet.Cells(co lumns.count,"IV").End(xlLeft))
could help?
Martin
|