View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Paul Dennis Paul Dennis is offline
external usenet poster
 
Posts: 51
Default Macro pt.RefreshTable

I have a macro that load new data and I need to refresh several pivot tables.
I am using the

For Each ws In ActiveWorkbook.Worksheets
For Each pt In ws.PivotTables
pt.RefreshTable
Next pt
Next ws

[PivotTables] is the name of the sheet

I get the error "Runtime Error 438 Object doesn't support this property or
method"

Any ideas?