Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi. I used the following code and it works fine as a macro.. On what
line do you get the error?? Sub Pivots() For Each ws In ActiveWorkbook.Worksheets For Each pt In ws.PivotTables pt.RefreshTable Next pt Next ws End Sub On Aug 15, 1:06 pm, Paul Dennis wrote: 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? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For Each pt In ws.PivotTables
"KLZA" wrote: Hi. I used the following code and it works fine as a macro.. On what line do you get the error?? Sub Pivots() For Each ws In ActiveWorkbook.Worksheets For Each pt In ws.PivotTables pt.RefreshTable Next pt Next ws End Sub On Aug 15, 1:06 pm, Paul Dennis wrote: 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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor | Excel Programming | |||
using the RefreshTable method | Excel Programming | |||
RefreshTable vs PivotCache.Refresh | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |