Consulting

Results 1 to 10 of 10

Thread: Solved: how to hide drop-down list of pivot tables

  1. #1
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location

    Solved: how to hide drop-down list of pivot tables

    Hello,

    Do you know if it's possible to hide the drop-down lists of the fields used in a pivot table of Excel. In other words how do you hide the arrows of the listboxes of a pivot table?

    thanx

  2. #2
    VBAX Expert
    Joined
    Jul 2004
    Location
    Wilmington, DE
    Posts
    600
    Location
    ALe,

    I do not think you can do that, except by gimmicky tricks like dropping drawing shapes on top of the cells with the PivotFields.

    Patrick

  3. #3
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    If I understood right, you can lock them...

    [vba] Dim fld As PivotField
    With ActiveSheet
    For Each fld In .PivotTables("PivotTable1").PivotFields
    fld.EnableItemSelection = False
    Next fld
    End With[/vba]
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  4. #4
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location
    thanks. It works fine. When you lock the list, you hide the arrow. The best would be to hide the arrow without locking the list. Is it possible?

  5. #5
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Sorry, ALe, I don't know. I actually dug through the object browser to find that property. You might want to give that a shot, unless anyone else has an idea.

    In the VBE, press F2 to bring it up. I searched for "Pivot" and ended up digging through the properties and methods of the Pivot Fields section as it seemed the most logical place.
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  6. #6
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location
    I did the same. I couldn't find a property to do that.

  7. #7
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    One of us should just claim that it can't be done. Usually as soon as someone says that, someone comes along with a way.
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  8. #8
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    OK.. It can't be done...
    Peace of mind is found in some of the strangest places.

  9. #9
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location
    IT CAN BE DONE!!!!!!!!!

    I'm joking...sorry.
    I searched a bit in internet but nobody has published any way.

  10. #10
    VBAX Mentor ALe's Avatar
    Joined
    Aug 2005
    Location
    Milan
    Posts
    383
    Location
    Right, I'm going to mark this thread as solved... hoping someone will solve it in the future.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •