+ Reply to Thread
Results 1 to 3 of 3

Pivot Table

Hybrid View

  1. #1
    Registered User
    Join Date
    02-20-2010
    Location
    nj
    MS-Off Ver
    Excel 2007
    Posts
    2

    Pivot Table

    Could someone please help me with the VBA code to determine how many colors are there per product and the ability to determine if their shares match.

    How do i do this using VBA code?

    I know you can determine RowField(index).name for the whole pivottable object for every RowField but I need to limit it to only the colors per product.

    Thanks!

    \1

  2. #2
    Registered User
    Join Date
    02-20-2010
    Location
    nj
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Pivot Table

    for example this code reads and loads all the product numbers into a listbox on my form, how do i do the same but limit to to only the colors per product?

    For Each pvt In Worksheets("pvi").PivotTables
    For j = 1 To pvt.RowFields("Product Number").PivotItems.Count
    ListBox3.AddItem pvt.RowFields("Product Number").PivotItems(j).Name
    Next j
    Next pvt
    Last edited by teylyn; 02-20-2010 at 07:28 PM.

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Pivot Table

    Hello NextStar,

    welcome to the forum.

    However, your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    I'll add the code tags for you this time, but I'll expect you to use them from now on.

    cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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