#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default PivotFields

I get this error and I don't know how to fix it. "Unable to get the
PivotFields property of the Pivot Table Class." What does this mean and does
anyone know how to fix it. Thank you in advance....
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default PivotFields

Hi Neal,
It occurs when the field name used does not exist. Eg:
Dim f As PivotField
Set f = ActiveSheet.PivotTables(1).PivotFields("a")
If field "A" does not exist, it fails.

Try to display your filed names:
? ActiveSheet.PivotTables(1).PivotFields(1).Name 'then 2,3,4...
And make su
- the field name exist
- you are referencing the right pivot on the right sheet.

Regards,
Sebastien

"Neal" wrote:

I get this error and I don't know how to fix it. "Unable to get the
PivotFields property of the Pivot Table Class." What does this mean and does
anyone know how to fix it. Thank you in advance....

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
PivotTable - PivotFields VBA Hutch Excel Discussion (Misc queries) 0 June 18th 08 09:03 PM
Deleting PivotFields from a PivotChart in VB.NET Refresher Charts and Charting in Excel 0 March 14th 07 08:10 PM
Where does Excel store the orientation of PivotFields? Valentin Charts and Charting in Excel 0 April 3rd 06 04:02 PM
Combining 2 Pivotfields to 1(Help!!!) Billabong Excel Programming 0 August 25th 04 10:18 AM
Pivotfields.CurrentPage Daniel Magnus Bennét Björck Excel Programming 5 February 6th 04 02:48 PM


All times are GMT +1. The time now is 06:29 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"