+ Reply to Thread
Results 1 to 1 of 1

Dynamic range names based on pivot table fields?

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    9

    Dynamic range names based on pivot table fields?

    Hi
    Is there a way of creating a dynamic range name from the contents of a field in a pivot table.
    I attach a simple example workbook which shows a pivot table based on some dummy data.
    I'm trying to create lists for drop down boxes that update based on the user's selection.
    I want the first drop down box to show the values in field "Ref 1", ie AAA, BBB and CCC. But these values need to update if the data in the table changes. I thought I should use a dynamic range name referencing the field "Ref 1", but can't seem to find a syntax that works.
    Then, say if the user selects AAA from the first drop down box, then a second drop box would show only the valid fields from field Ref 2, ie DDD and EEE.
    Then, ultimately I would want a third drop down box that shows only the valid fields from the pivot table based on the selections in drop down 1 and drop down 2?
    Can anyone set me off in the right direction?
    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-05-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Dynamic range names based on pivot table fields?

    Hi all,
    I'm guessing this may not be possible given no immediate responses?
    So I'm trying to come at this a different way, by updating the pivot table based on the value selected in the drop down box.
    I've recorded a macro to filter the pivot field (Field1 in Pivot1) based on the drop down box selection and paste the new data in a new range.
    But the code is not dynamic (ie it does not update based on the drop down selection, just pastes the "text" selected in the drop down box). I think I need to change the code Value1:="text" to code that references the selection in "RangeName" so that when RangeName changes, the filter on Field1 changes.
    The code I have is
    Please Login or Register  to view this content.
    I'd really appreciate any help on this
    Thanks
    Last edited by Gandalf21; 09-24-2013 at 03:43 AM.

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Dynamic range names based on pivot table fields?

    Please ignore - duplicated in error
    Last edited by Gandalf21; 09-24-2013 at 03:41 AM. Reason: duplicate in error please ignore

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dynamic range names based on pivot table fields?
    By Gandalf21 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2013, 07:47 PM
  2. [SOLVED] Creating new Pivot table with dynamic sheet names/ranges
    By KeriM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2013, 08:54 AM
  3. Concatenate Pivot Table fields based on criteria
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2012, 12:52 PM
  4. Dynamic Field Names in Excel 97 Pivot Table?
    By JanieA in forum Excel General
    Replies: 0
    Last Post: 07-08-2009, 04:14 AM
  5. [SOLVED] repeating names in row fields of a pivot table
    By Jack N in forum Excel General
    Replies: 1
    Last Post: 08-18-2006, 11:40 AM

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