+ Reply to Thread
Results 1 to 5 of 5

using keys of the dictionary

  1. #1
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Exclamation using keys of the dictionary

    Hello everybody!
    I come here often but the first time I post a thread, and I don't speak English very well.

    I need help for using keys of my dictionary. On this image as example I need to find all different values in the column A (sheet 1) check them in the column A of the sheet 2. Then copy the corresponding value of the column B .offset(0,1) in an other sheet. I have this code now but doesn't work:
    Please Login or Register  to view this content.
    exemple.jpg

    If somebody can help me!?

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: using keys of the dictionary

    Try like this

    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: using keys of the dictionary

    That works exactly as I want! you were very quick!
    Now I'll try to understand it!
    Thank you very much!!

  4. #4
    Forum Contributor
    Join Date
    10-19-2012
    Location
    Omaha, Nebraska USA
    MS-Off Ver
    Excel 2010
    Posts
    249

    Re: using keys of the dictionary

    Hi,

    Here is a version I was writing before Leo posted his. His looks more efficient, but I figured I would post mine since the code is a little bit different.

    Please Login or Register  to view this content.
    Thanks,

    Dan

  5. #5
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: using keys of the dictionary

    Hi Dan!
    Thank you for your help! I'm learning VBA so it's really fine that I can compare both!

+ 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] How to compare keys in one dictionary to keys in another dictionary
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2015, 02:27 PM
  2. [SOLVED] Macro to write dictionary keys to array not working
    By capson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2015, 05:21 PM
  3. Storing a Dictionary into a Dictionary Object
    By pago_boss in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2015, 03:04 AM
  4. Dictionary - Using a dictionary of dictionaries to hold individual orders
    By wazimu13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2015, 08:32 PM
  5. [SOLVED] Filter data using keys in dictionary
    By ATLGator in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2014, 11:48 PM
  6. [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
  7. [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

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