+ Reply to Thread
Results 1 to 3 of 3

Filter data using keys in dictionary

  1. #1
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Filter data using keys in dictionary

    Hello,

    I am working on the last step in a very long project and cannot figure out how to filter my data based on keys in a dictionary.

    The data I am working with (in the ActiveSheet) has a list of names (in column 6). I want to add these names as keys in the dictionary and the corresponding location (in column 7) as the items. Then, I want to filter the data by each key in the dictionary, copy the filtered data, and paste it into another workbook. I have included the code I have so far. It seems to work exactly how I want as long as I'm not using the dictionary. What am I missing?

    Thanks!!

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Filter data using keys in dictionary

    Hi..

    First... Check out snb's site.. he has a great amount of info on the Scripting Dictionary..

    http://www.snb-vba.eu/VBA_Dictionary_en.html

  3. #3
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Filter data using keys in dictionary

    Thanks apo - I actually found this site, but it seems I didn't look carefully enough.

    In case anyone stumbles onto this thread looking for answers, I used the Excel Index function to query the dictionary:
    Please Login or Register  to view this content.
    and found this answer in section 14.3 of the site that apo referenced above.

+ 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. [SOLVED] Transposing dictionary keys and items into one column
    By strud in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2013, 09:42 AM
  2. [SOLVED] Problems retrieving keys as well as items when using scripting dictionary
    By strud in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-09-2013, 05:31 AM
  3. Filter and Sort Scripting Dictionary
    By Jbryce22 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-16-2012, 03:34 PM
  4. [SOLVED] Turn off/remove filter keys
    By pkmarten in forum Excel General
    Replies: 1
    Last Post: 04-08-2006, 01:15 PM
  5. [SOLVED] Linking MS dictionary as data into Excel
    By Yabbadoo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2005, 07:06 PM

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