Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dolph
 
Posts: n/a
Default refresh pivot tables through a macro

Hi all,

I'm trying to create a macro to update pivot tables with a macro. but
when I create it and then try to run it, I receive the message: It'
impossible to find the propriety Pivot tables for the class Worksheet.
the Macro is:
"Sheets("Inserimento Dati").select
Range("H24").Select
ActiveSheet.PivotTables("tabella_pivot1").RefreshT able"

The system is Excel 2003 in XP. I did a similar macro in WIN 98 and it
worked, but it used a PivotTables wizard that does not work any more
in XP.

Thanks a lot in advance, hope I've been clear enough.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Where do you have your code?

maybe:
Sheets("Inserimento Dati").PivotTables("tabella_pivot1").RefreshTable

or if you think the name of the PT changed:

Dim PT As PivotTable
For Each PT In Worksheets("Inserimento Dati")
PT.RefreshTable
Next PT



dolph wrote:

Hi all,

I'm trying to create a macro to update pivot tables with a macro. but
when I create it and then try to run it, I receive the message: It'
impossible to find the propriety Pivot tables for the class Worksheet.
the Macro is:
"Sheets("Inserimento Dati").select
Range("H24").Select
ActiveSheet.PivotTables("tabella_pivot1").RefreshT able"

The system is Excel 2003 in XP. I did a similar macro in WIN 98 and it
worked, but it used a PivotTables wizard that does not work any more
in XP.

Thanks a lot in advance, hope I've been clear enough.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Tables New Pivot Table User Excel Discussion (Misc queries) 3 January 21st 05 04:25 AM
Pivot Table Refresh Problems PFL Excel Discussion (Misc queries) 2 January 13th 05 01:24 AM
Pivot Tables - Variance and % Variance fields CraigS Excel Discussion (Misc queries) 5 January 6th 05 12:22 AM
How do I fix column widths in Excel Pivot Tables? skeezix Excel Discussion (Misc queries) 1 December 11th 04 12:43 AM
There should be a Refresh All feature, enabling all pivot tables . JL1981 Excel Worksheet Functions 1 October 27th 04 10:22 PM


All times are GMT +1. The time now is 04:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"