+ Reply to Thread
Results 1 to 3 of 3

Pivot table - show detail

  1. #1
    Wolfie
    Guest

    Pivot table - show detail

    I'm trying to create a procedure to show the detail in a pivot table. Using
    the macro recorder, I get:

    Range("B7").Select
    Selection.ShowDetail = True

    However, I'd prefer to reference the pivot field (field name = Division)
    directly.

    TIA,

    Dave



  2. #2
    Tom Ogilvy
    Guest

    Re: Pivot table - show detail

    Dim pvtitm as PivotItem
    for each pvtitm in
    activesheet.PivotTables(1).PivotFields("Division").PivotItems
    pvtitm.ShowDetail = True
    Next

    --
    Regards,
    Tom Ogilvy


    "Wolfie" <dmileswolfe@yahoo.com> wrote in message
    news:eIXHXHfUGHA.4864@TK2MSFTNGP12.phx.gbl...
    > I'm trying to create a procedure to show the detail in a pivot table.

    Using
    > the macro recorder, I get:
    >
    > Range("B7").Select
    > Selection.ShowDetail = True
    >
    > However, I'd prefer to reference the pivot field (field name = Division)
    > directly.
    >
    > TIA,
    >
    > Dave
    >
    >




  3. #3
    Wolfie
    Guest

    Re: Pivot table - show detail

    Thanks Tom!

    "Tom Ogilvy" <twogilvy@msn.com> wrote in message
    news:uWuRCRgUGHA.1444@TK2MSFTNGP11.phx.gbl...
    > Dim pvtitm as PivotItem
    > for each pvtitm in
    > activesheet.PivotTables(1).PivotFields("Division").PivotItems
    > pvtitm.ShowDetail = True
    > Next
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "Wolfie" <dmileswolfe@yahoo.com> wrote in message
    > news:eIXHXHfUGHA.4864@TK2MSFTNGP12.phx.gbl...
    >> I'm trying to create a procedure to show the detail in a pivot table.

    > Using
    >> the macro recorder, I get:
    >>
    >> Range("B7").Select
    >> Selection.ShowDetail = True
    >>
    >> However, I'd prefer to reference the pivot field (field name = Division)
    >> directly.
    >>
    >> TIA,
    >>
    >> Dave
    >>
    >>

    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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