Closed Thread
Results 1 to 10 of 10

i want to fix marvinp's code for Updating PivotTable filters based on other cell valu

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    9

    i want to fix marvinp's code for Updating PivotTable filters based on other cell valu

    Hi All

    Can any one help me to fix the below mentioned programme in my excel sheet where i need this to work. i mean if any one can make me to understand this will be helpfull. i don't know the VB but i have the same requirement in my report what this programme does.

    this is Mr. Marvin P's programme if he is seeing this thread please help me.

    ' CHANGES THE NAME IN THE CUSTOMER CONTACTS PIVOT TABLE

    Dim pvtTable As PivotTable
    Dim pvtField As PivotField
    Dim pvtItem As PivotItem
    Dim filterName As String

    Set pvtTable = Worksheets("Contacts").PivotTables("PivotTable10")
    Set pvtField = pvtTable.PivotFields("Opportunity Owner: Full Name")

    filterName = Worksheets("Data").Range("B1")

    For Each pvtItem In pvtField.PivotItems
    If pvtItem.Value = filterName Then
    pvtField.CurrentPage = filterName
    Exit For
    End If
    Next pvtItem

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: i want to fix marvinp's code for Updating PivotTable filters based on other cell

    What is your requirement?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    02-22-2012
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: i want to fix marvinp's code for Updating PivotTable filters based on other cell

    thank you Arlette,

    My requirement is. i have pivote table report which shows the project details. and i have a summarry where i can see the project details in summarry, now if i give the project Number in Summarry report and if i click the link it will teke me to the pivote table where i can find the details of the project but this report filter the project number should get change with the project number what i am entering in Summarry.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: i want to fix marvinp's code for Updating PivotTable filters based on other cell

    Do you have a sample file that you can attach?

  5. #5
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: i want to fix marvinp's code for Updating PivotTable filters based on other cell

    Please add code tags to your post, per the forum rules.
    Good luck.

  6. #6
    Registered User
    Join Date
    02-22-2012
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: i want to fix marvinp's code for Updating PivotTable filters based on other cell

    i don't understand what exactly you are saying

  7. #7
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: i want to fix marvinp's code for Updating PivotTable filters based on other cell

    See rule 3 here and edit your post accordingly.

  8. #8
    Registered User
    Join Date
    02-22-2012
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    9

    Using IF function wit hte text content cell

    Hi All , i want to use if function with the cell content text, here i can't change the cell format because it is being taken from sql server and it will keep change every time when i update; so please help me to fix this problem i have attached the samply file for both my earlier query as well this question.
    Attached Files Attached Files

  9. #9
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: i want to fix marvinp's code for Updating PivotTable filters based on other cell

    That's a separate question and should be posted as such. Also, you still haven't added code tags.

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

    Re: i want to fix marvinp's code for Updating PivotTable filters based on other cell

    Quote Originally Posted by ahmedkin View Post
    i don't understand what exactly you are saying
    As this thread is getting messy, I will close it.

    Please read forum rules before starting new threads and use code tags as requested by a senior member.

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