+ Reply to Thread
Results 1 to 2 of 2

Pivot Item Loop (2-part)

  1. #1
    Registered User
    Join Date
    10-17-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    71

    Question Pivot Item Loop (2-part)

    Hi guys! I have a 2-part problem that I'm trying to solve with a PivotTable loop:

    Firstly, I've created a loop on my PivotField "GCI" that moves through each PivotItem in my PivotTable until it has moved through all the items (this should be working fine in code below).

    Secondly, each time the code moves to a new PivotItem in the list, I need to copy the range O4:T4 (it's on the same sheet as the pivot table and will never change) and paste those VALUES into a different range of cells (lets say V4:AA4). The Kicker.. Each time I copy range O4:T4 for a PivotItem, I need to paste the VALUES below the previously pasted VALUES. So if we hypothetically just pasted PivotItem1's range into V4:AA4, we need to paste PivotItem2's range into V5:AA5 (right below it). This process should repeat until the loop has moved through all the PivotItems. When completed, I will have a table in V:AA that has all of these pasted VALUES from each PivotItem. Whew, hopefully I explained that clearly enough!! Any help is really appreciated on this and I am open to any modifications to the original loop code. I'm not sure if I need to use an OFFSET function on this or how to approach it !

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    10-17-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: Pivot Item Loop (2-part)

    I got this solved earlier today. For anyone that is interested in the code I used to solve my problem, please see below:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 07-25-2013, 05:24 PM
  2. Creating a part number from an item description
    By yr25 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2013, 12:13 PM
  3. Hiding Rows based on PART of Cell Item
    By Kitten4Him in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2012, 04:13 PM
  4. Why do Pivots display pivot item tick boxes that are not visible in the pivot?
    By davellll in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2009, 12:53 PM
  5. Pivot Item: removing non-existant item from the drop down
    By CinqueTerra in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2006, 04:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1