+ Reply to Thread
Results 1 to 2 of 2

code that will count the number of items selected in a slicer on a pivot table

  1. #1
    Registered User
    Join Date
    03-03-2012
    Location
    Qatar
    MS-Off Ver
    Excel 2007
    Posts
    25

    code that will count the number of items selected in a slicer on a pivot table

    I have a slicer titled "Incident Number" in a pivot table. I would like to display the number of items selected in the slicer to be counted. I need this number to appear in cell D22. I have added the following code which isn't working. Let me clear again, when an item selected in slicer named "Section" the number ot items appeared in slicer named "Incident Number" should be displayed in cell D22.
    Please Login or Register  to view this content.
     
    Attached Files Attached Files
    Last edited by JBeaucaire; 02-11-2017 at 12:45 AM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: code that will count the number of items selected in a slicer on a pivot table

    Maybe:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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: 12-16-2016, 12:18 PM
  2. [SOLVED] Run macro to change pivot table row field when user selected a slicer item
    By Chrispelletier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2016, 09:44 AM
  3. Finding Items NOT selected on a Slicer
    By david2003 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-05-2014, 08:13 AM
  4. [SOLVED] Macro to Update a Cell Based on Number of Items Selected in Pivot Slicer
    By MBeedle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2013, 01:47 PM
  5. Replies: 2
    Last Post: 09-26-2012, 01:41 PM
  6. Replies: 1
    Last Post: 09-03-2012, 10:03 PM
  7. Replies: 3
    Last Post: 08-10-2005, 01:05 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