+ Reply to Thread
Results 1 to 3 of 3

controlling pivot table with cell references

  1. #1
    Forum Contributor
    Join Date
    11-22-2006
    MS-Off Ver
    2010
    Posts
    201

    controlling pivot table with cell references

    HI all, i am using the code below to control PivotTable1.
    Cell B4 contains a drop down box based on a validation list, this controls the pivot field SpecDesc and this is activated by a command button.

    What I cant figure out, is that i have the following cells which i also want to control other pivot fields.
    They are:
    cell B5 which will control the Pivot Field DivCode
    cell B6 which will control the pivot field ConsCode
    cell B7 which will control pivot field AdmCode
    and B8 which controls DayCode.

    What I am trying to get is a macro that would update the pivot table based on each of these fields unless the value in the B cell is (All)...ie nothing has been selected in which case that field is left as (All)

    Please Login or Register  to view this content.

    Hope someone can help.
    Thanks
    Luce

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,973

    Re: controlling pivot table with cell references

    Something like:
    Please Login or Register  to view this content.
    assuming they are all page fields.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    11-22-2006
    MS-Off Ver
    2010
    Posts
    201

    Re: controlling pivot table with cell references

    Thank you RomperStomper

+ 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