+ Reply to Thread
Results 1 to 5 of 5

Changing a pivot table with a cell value

  1. #1
    Registered User
    Join Date
    06-21-2010
    Location
    Texas, San Antonio
    MS-Off Ver
    Excel 2007
    Posts
    57

    Changing a pivot table with a cell value

    Hello all,

    What I am trying to do is select a value in a named cell range called “DataSelection” to change the data field called” Name” within a Pivot Table called” PivotTable1”. I have been trying to get this code to work but I keep getting a run-time error ‘1004’ Method ‘Intersect’ of object ‘_Global’ failed. Whenever I try to select another data validation list I have on the worksheet, that has no relationship to PivotTable1.
    Here is the code:

    Please Login or Register  to view this content.
    Thanks
    Last edited by Coldsteel; 09-16-2010 at 04:16 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Changing a pivot table with a cell value

    Can you outline how "DataSelection" is defined ?

    Better yet, post a small sample that demonstrates the issue.

  3. #3
    Registered User
    Join Date
    06-21-2010
    Location
    Texas, San Antonio
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Changing a pivot table with a cell value

    Yeah,

    Thanks for the help. DataSelection is a cell where I enter a reps name to change PivotTable1. I get the error when I key in new data on the Raw Data sheet.

    Here is a copy of the Workbook

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Changing a pivot table with a cell value

    You could perhaps first validate the Sh to the parent of the Name

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-21-2010
    Location
    Texas, San Antonio
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Changing a pivot table with a cell value

    Thanks it works great!!!

+ 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