+ Reply to Thread
Results 1 to 8 of 8

PivotSelect method issue

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

    Angry PivotSelect method issue

    I've been working on this for HOURS now , so any help would be EXTREMELY appreciated ! I'm just trying to highlight the rows in my Client Detail Account PivotField based on another PivotField.

    I have 2 Pivot Fields in this order:
    1. Client Detail Account
    2. Detail Service Code

    So, If the Detail Service Code PivotField contains the ZBA MASTER ACCOUNT MAINT PivotItem, the code should highlight the Client Detail Account PivotField (ONLY THE Client Detail Account ROWS THAT MEET THE CRITERIA).

    Currently, there are no errors in the code, but it highlights every single row of the Client Detail Account PivotField. Here is the potential culprit:
    Please Login or Register  to view this content.
    Here is the full code:
    Please Login or Register  to view this content.
    Any insight into how to make this happen would be MUCH APPRECIATED!

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: PivotSelect method issue

    Could you post a sample workbook showing exactly which cells you want highlighted?
    Remember what the dormouse said
    Feed your head

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

    Re: PivotSelect method issue

    I have attached a sample as requested! You'll notice that all 3 account rows become highlighted when the button is clicked. I only want the Client Detail Account rows to highlight when the other pivot field contains "ZBA MASTER ACCOUNT MAINT ". Only accounts 1 and 2 in the example contain the ZBA pivot item I'm looking for. Account 1 and 2 are the only pivot fields that should highlight when the button is clicked.

    Sample.xlsm

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: PivotSelect method issue

    Try this:
    Please Login or Register  to view this content.

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

    Re: PivotSelect method issue

    Hey Romper, thanks for the response. However, I am getting an error 'Application-defined or object-defined error' on the following code line:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: PivotSelect method issue

    Interesting - it works perfectly in 2010. I will try to test with 2007 when I can.

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

    Re: PivotSelect method issue

    Any luck trying this in 2007?

  8. #8
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: PivotSelect method issue

    I didn't get around to it, I'm afraid. I will try and remember to test it tonight.

+ 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. [SOLVED] ComboBox, DropDownListOnly, Range.Find Method Issue
    By s2jrchoi in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-02-2014, 09:05 AM
  2. PivotSelect for changes data
    By scatachi2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-09-2010, 02:12 PM
  3. .Find Method results issue...
    By yellephant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2007, 12:27 PM
  4. PivotSelect
    By MCyn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2006, 10:50 PM
  5. [SOLVED] Pivottable Pivotselect string
    By mo_in_france in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2005, 05:06 AM

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