Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default loop on pivot items

Hi guys,

I would like to print one after another all the ".Pivot Items" that are in
the pivot table I'm working with. The loop would go somehow like this...

With ActiveSheet.PivotTables("PivotTable1").PivotFields ("Field 1")
..PivotItems("Item No 1").Visible = True (and all the others are = False)
End With
Range("M3").Select
Selection.CurrentRegion.Select
Selection.PrintOut

then the same process but with the next .Pivot Item... until the last one,
where we define somehow that all Pivot Items should be visible again.

Do you have any idea how to set up a loop like this?
Thanks for your help,
Markx


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
repetitive items in For each loop Ren Excel Programming 0 January 10th 08 07:26 AM
Updating pivot items on 3 pivot tables contained on one sheet klysell Excel Programming 2 August 9th 07 07:00 PM
Pivot Table Programing Help (Selecting Pivot Items) Manish Jaitly[_2_] Excel Programming 0 May 25th 07 12:38 PM
selecting multiple ActiveCell items (possibly loop problem) jono_dude Excel Programming 2 December 19th 06 12:37 AM
Adding items to ComboBox in a loop? cmpcwil2[_15_] Excel Programming 3 May 4th 06 10:31 AM


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