Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to add a PivotItem ?

How do I add a PivotItem to a PivotField ? I want to do this so that m
output tables and graphs keep the same number of rows and columns
independent of the user choices from preset data lists.

I know all the Item possible values, but until they get chosen in th
data-table they do not appear. When they appear, a new row or colum
appears - this ruins my nice layout!

I have seen and used the nice VBA-code in this Forum for deletin
obsolete PivotItems, but could not find any references for adding ne
items.

I am using Excel 97 (sorry).

Thanks Roger

NB sorry if this post is duplicated, the first try seems to explorin
Prof Hawking's newly defined Black Hole

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to add a PivotItem ?

Pivot items are a function of the underlying data. To the best of my
knowledge, there is no way to add a pivot item except by building a
calculated item - perhaps that is something you can pursue.

--
Regards,
Tom Ogilvy

"sharprog " wrote in message
...
How do I add a PivotItem to a PivotField ? I want to do this so that my
output tables and graphs keep the same number of rows and columns,
independent of the user choices from preset data lists.

I know all the Item possible values, but until they get chosen in the
data-table they do not appear. When they appear, a new row or column
appears - this ruins my nice layout!

I have seen and used the nice VBA-code in this Forum for deleting
obsolete PivotItems, but could not find any references for adding new
items.

I am using Excel 97 (sorry).

Thanks Roger

NB sorry if this post is duplicated, the first try seems to exploring
Prof Hawking's newly defined Black Hole.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to add a PivotItem ?

Thanks for your reply Tom,

I did fear that there would be no way to add the items.

I see that I can add a loop to insert all desired values into my dat
matrix, refresh the pivot and then erase the "temporary" data.

I was hoping for a simpler solution!

... Roge

--
Message posted from http://www.ExcelForum.com

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
how to set pivotitem.visible property to true kanan Excel Programming 0 February 25th 04 08:06 PM
How can I set PivotItem.Visible property to True? yumi Excel Programming 2 February 19th 04 11:51 AM
Selecting a PivotItem in code Robert E. Peterson Excel Programming 1 February 4th 04 06:30 PM
Pivotitem count Jesse[_4_] Excel Programming 3 December 28th 03 09:19 PM
Debra's sample code to hide a Pivotitem Fred bon Excel Programming 0 August 7th 03 02:48 AM


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