Closed Thread
Results 1 to 2 of 2

Pivot Table selection based on Drop Down

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Pivot Table selection based on Drop Down

    I hope this isn't against the rules but I'm in need of help...I posted this in the Programming forum but didn't get an answer so I'm hoping it's more visible here...the link to the other thread is here - http://www.excelforum.com/excel-prog...drop-down.html

    I have the following code which is supposed to select a page value based on what is selected in cell B6 (a validation list). But it's not working...it's just doing nothing. It's working on one Pivot Table that only has one Page Field, but this table has 2 and it's not working...hoping someone can help me out! Thanks!!!

    Private Sub WorksheetVP_Change(ByVal Target As Range)
    If Target.Address = "$B$6" Then VP_Change2
    End Sub
    Sub VP_Change2()
    ' This changes a Page Field to a set value.
    ActiveSheet.PivotTables("pivot").PivotFields("VP").CurrentPage _
    = Range("B6").Value
    Cells.Select
    Selection.Interior.ColorIndex = 2
    Range("A14").Select
    
    End Sub

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Pivot Table selection based on Drop Down

    Hi,
    I do understand your concern, but the programming forum still is the best one to post.
    Bump your post regularly. I hope you'll get an answer ASAP. I'm closing his thread to keep things focused on the programming section.

Closed 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