+ Reply to Thread
Results 1 to 6 of 6

Pivot Item selection error

  1. #1
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Pivot Item selection error

    I am getting an error when trying to set the the pivot item to a range. The range ("SK5") would include a name like "Tom Smith", which i would like to be the only option chosen for the filter. I am getting an "Unable to get the PivotItems Property of the PivotField Class" error when i deactivate the "On Error Resume Next" line. I know the name "Tom Smith" exists as a pivotitem, just not sure where the error is coming from.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Pivot Item selection error

    you set DBM but dim dbmitm

    where is dbmitm value coming from then?
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Pivot Item selection error

    also if you clear filters and only make 1 visible...well then...all items are still visible

    if you want only one item to be visible you need to make every other item not visible

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Pivot Item selection error

    i see your profile says 2013...if your only wanting one item from one pivot
    you may be better off using pivotfield/pagefield
    http://www.thespreadsheetguru.com/bl...l-pivot-tables
    see section Report Filter On A Single Item

    however if you still want to use pivot items
    see section Report Filter On Multiple Items of the website

    if you want to learn how to loop the pivot items instead of setting one by one
    see post #2 on this thread to see how to i use set Pivot items syntax
    its pretty similar to what your asking however i am doing multiple pivot tables with one cell
    http://www.excelforum.com/excel-prog...ot-tables.html
    Last edited by humdingaling; 09-24-2015 at 09:46 PM. Reason: additional info

  5. #5
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Re: Pivot Item selection error

    I meant to set dbmitm instead of DBM, thank s for catching that, but of course, by clearing all the filters then everything is visible. My logic was completely backwards! Thank you for the help!

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Pivot Item selection error

    not a problem
    after taking in the information i have given and putting it into practice if you still having issues please come back and let me know what they are ill see if i can still help
    otherwise if that takes care of the original question

    please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Pivot Table Filter Not Allowing Item Selection.
    By Greg Reed in forum Excel General
    Replies: 0
    Last Post: 07-29-2015, 09:37 AM
  2. "Cannot group that selection" error in pivot table work-around
    By kfryar in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-07-2014, 02:46 AM
  3. [SOLVED] Pivot Table Calculated Item Error
    By DPaton in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-18-2014, 08:47 PM
  4. Excel 2007 - Pivot Table: “Cannot Group That Selection” error!!
    By alsalms3 in forum Excel Charting & Pivots
    Replies: 14
    Last Post: 01-13-2013, 01:23 PM
  5. [SOLVED] Pivot Table Error: 'CANNOT GROUP THAT SELECTION'
    By Rhino_dance in forum Excel General
    Replies: 5
    Last Post: 09-20-2012, 11:35 AM
  6. Multi select Listbox Items selection based on other Listbox item selection.
    By srinivassathi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2011, 05:53 AM
  7. Pivot Item: removing non-existant item from the drop down
    By CinqueTerra in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2006, 04:50 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