+ Reply to Thread
Results 1 to 1 of 1

Macro to update Pivot Tables using Combo Box

Hybrid View

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    Minnesota
    MS-Off Ver
    Excel 2007/2010
    Posts
    7

    Macro to update Pivot Tables using Combo Box

    I'm trying to set up a macro that will update 2 pivot tables at the same time using a combo box. I a list of all the vendor names on one side and at the top have cell link giving # location for what is selected in the combo box. Next to the # I have an index formula taking the number and returning me with the vendor name selected. I tried this from some video but it does not seem to work. Cell H1 is the index formula returning the vendor name selected and B1 is where the combo box is. Also I'm wondering if if I can move the combo box off of this page and to another so the pivot tab can be hidden.

    '
    
    '
        With ActiveSheet.PivotTables("PivotTable10").PivotFields("Vendor")
            .CurrentPage = Range("H1").Text
        End With
        With ActiveSheet.PivotTables("PivotTable12").PivotFields("Vendor")
            .CurrentPage = Range("H1").Text
        End With
        Range("B1").Select
    End Sub
    Last edited by ajmarti82; 06-14-2013 at 09:44 AM. Reason: Use code tags in future.

+ 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