+ Reply to Thread
Results 1 to 2 of 2

VBA to remove specific items from a PivotTable Field

Hybrid View

  1. #1
    Registered User
    Join Date
    05-29-2009
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    15

    VBA to remove specific items from a PivotTable Field

    Hello,

    I have a Cube that is presented in Excel as a PivotTable that has a field that has 50K members. I was wondering how you would suggest I build a macro that allows me to remove certain items from that field. i.e. I had 40 memebers selected but now I wanted to deselect 3 of them via a user prompted csv string. What is the proper way of doing that?

    I was thinking of using this code from stackoverflow:
    http://stackoverflow.com/questions/2...able-pagefield
    to get the existing values in the possibly filtered string but to me it seems it might take a while if there are 50K members to create an array from and them searching for that item and just making the value "".

    Is this the right logic? or is there a much simpler and more elegant solution?

    Additionally these members are represented in the actual cube/vba as a key i.e. Project ID GAZEDDD1 is represented as [1] when using cube functions is there an easy way via vba to get that key?

    Sincerely,

    Richard Lee
    Last edited by rkl303; 01-16-2015 at 01:15 PM. Reason: Additioanl Question

  2. #2
    Registered User
    Join Date
    05-29-2009
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: VBA to remove specific items from a PivotTable Field

    Bump for an Answer.

+ 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: 1
    Last Post: 08-28-2012, 02:26 PM
  2. [SOLVED] Pivottable Field items code -problems
    By Rayo K in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2006, 06:00 PM
  3. Remove old selections in Pivottable row field dropdown list
    By Mark Purvis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2006, 12:00 PM
  4. How do I count unique items in a pivottable data field.
    By Jaywestern in forum Excel General
    Replies: 2
    Last Post: 12-28-2005, 09:20 PM
  5. Replies: 2
    Last Post: 01-05-2005, 06:06 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