+ Reply to Thread
Results 1 to 5 of 5

Pivot Table Not Selecting Max Week

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    84

    Pivot Table Not Selecting Max Week

    I'm trying to write some code where it will select the max pivot item in "Workweek". However, I can't get it to quite work right. Thanks for your help.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot Table Not Selecting Max Week

    Do you mean this solution?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    01-17-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: Pivot Table Not Selecting Max Week

    No, in the workbook you posted. I would want workweek 26.2 be the only selection. The logic stops at workweek 25, I wonder why that is.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot Table Not Selecting Max Week

    with the pivot table in the green cells.

  5. #5
    Registered User
    Join Date
    01-17-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: Pivot Table Not Selecting Max Week

    This is close to what I want...the code breaks when I try to turn on lngMaxValue in the pivot table. I bolded the area where teh code breaks down.

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. I want to add a 16 week rolling AVG in a pivot table.
    By krisarmstrong in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-21-2014, 02:33 PM
  2. Pivot Table that groups by day of week.
    By travkliewer in forum Excel General
    Replies: 2
    Last Post: 07-03-2014, 07:07 PM
  3. Cache of Pivot table is not selecting the table values
    By Menaka in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-06-2013, 07:39 AM
  4. Replies: 0
    Last Post: 03-22-2009, 07:17 PM
  5. [SOLVED] Pivot table displayed by day of the week
    By Dan in forum Excel General
    Replies: 3
    Last Post: 02-20-2005, 03:06 PM

Tags for this Thread

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