Sheets("ILine_Wss_earth").Select
Range("D8").Select
ActiveSheet.PivotTables("PivotTable8").PivotCache. Refresh
'Open the E500 wss earth table and refresh'
Sheets("E500_Wss_earth").Select
Range("D8").Select
ActiveSheet.PivotTables("PivotTable8").PivotCache. Refresh
'Open the WST_TPT table and refresh'
Sheets("WST_TPT").Select
Range("D9").Select
ActiveSheet.PivotTables("PivotTable8").PivotCache. Refresh
It stops at the highlighted line of code, but as tou can see for the
previous worksheets, it refreshes them wit the same pivotTable.
I thought it mite be because range D9 is an empty cell but even when i
change the range to a cell with content, it still doesnt work.
What changes in the worksheet is that eveyweek the pivotTable brings in
a new column of data for that perticukar week!
Thanks for the help!
--
magarnagle
------------------------------------------------------------------------
magarnagle's Profile:
http://www.excelforum.com/member.php...o&userid=34486
View this thread:
http://www.excelforum.com/showthread...hreadid=542478