Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with Pivots (.Pivot Items) - Excel 97

Need help with the following situation:

I have a pivot table based on a series of months
(Format of source data = Jan-04 etc)

The problem is that I want to be able to hide months using a macr
depending on a month selection... e.g. the macro finds startmont
(01/01/2000 say) - then "hides" in the pivot all months earlier tha
this.

I'm trying to use something similar to this code....

checkmonth = "01/01/2003"

with activesheet.pivottables("pivottable1").pivotfields ("Month")
.pivotitems(checkmonth).visible = false
end with

There is a loop to change the value of checkmonth, which I've "dimmed
as a date. The problem is that it can't "find" the month in the pivo
table to hide it. I can only assume the date link isn't working....?

Do you need any more info? Please help! It's driving me nuts

--
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
Issues when pivot charts are refreshed and pivots has filters Saswato Mitra Charts and Charting in Excel 1 January 3rd 10 04:36 PM
Pivot Chart in Excel 2007 - top 10 items? [email protected] Charts and Charting in Excel 2 March 27th 08 04:42 AM
Renaming Pivot Table items- Excel won't let me? nic4asu Excel Discussion (Misc queries) 0 December 7th 05 09:38 PM
Can't group pivot table items by month in Excel scott_ensley Excel Discussion (Misc queries) 1 February 1st 05 08:41 PM
Pivots using other pivots and dynamic query problem lc Excel Programming 0 November 7th 03 03:02 PM


All times are GMT +1. The time now is 09:20 PM.

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"