Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 188
Default PivotTable Object - Unable to get the name property


Hi All,

I am having difficulties obtaining properties of a pivottable.

I am using the following code to illustrate:

Sub Test()

Dim MyPivot As PivotTable

Set MyPivotTables = Worksheets("Sheet3").PivotTables

End Sub


I have a single pivottable on Sheet3.

If I step into that code, MyPivotTables is created as the PivotTables
collection on sheet 3 correctly.

If I then check the count property of MyPivotTables in the locals
window it is 1 - as expected.


Staying in the locals window, I then go to Item1 of the collection,
and open it up.

However, if I look at the Name property, it reads:

"Unable to get the name property of the pivottable class"

I have explicitly named the pivottable manually (right click on the
pivottable, table options, name - set to "ABCPivotXYZ"), but still get
the same message in locals.

It is the same for any number of other properties of that Item1
(pivottable) in the locals window.

Can anyone explain this to me, and more to the point, how to I access
those properties?

Thanks,

Alan.



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
unable to get the pivotfields property of the pivottable class dhstein Excel Discussion (Misc queries) 0 January 6th 10 02:27 AM
Unable to match property error papou[_2_] Excel Discussion (Misc queries) 0 October 4th 07 10:07 AM
Unable to set the XValues Property Ali Baba Charts and Charting in Excel 2 September 14th 05 04:54 AM
returning pivottable object from a range object Grant Excel Programming 2 September 27th 04 02:22 AM
Unable to get VLOOKUP property cici Excel Programming 1 February 10th 04 11:24 PM


All times are GMT +1. The time now is 02:00 AM.

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

About Us

"It's about Microsoft Excel"