+ Reply to Thread
Results 1 to 6 of 6

Scripting Dictionary (working as vlookup) and add calculated columns

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    Poland
    MS-Off Ver
    excel 2007
    Posts
    85

    Scripting Dictionary (working as vlookup) and add calculated columns

    Hi,
    im working on the project :
    I got the code for making script dictionary working as vlookup from another spredsheet
    Please Login or Register  to view this content.
    This part of code making just straight vlookup based on a key from range A:A in sheet2 (and look it up in sheet1), and then put them in sheet2.
    What i need to do is after this copying the dictionary would look in the source for reference and for example add values from Column O and Column P from sheet1 and put them next to vlookuped values in sheet2.

    Best Regards,
    Mumsy

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Scripting Dictionary (working as vlookup) and add calculated columns

    "Next"?
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-09-2013
    Location
    Poland
    MS-Off Ver
    excel 2007
    Posts
    85

    Re: Scripting Dictionary (working as vlookup) and add calculated columns

    Thx for answer, unfortunately i got object doesn't support this property or method error on line
    Please Login or Register  to view this content.
    I'm posting example workbook to get lil more visual about it:

    If somethings unclear there pls ask
    BR,
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Scripting Dictionary (working as vlookup) and add calculated columns

    Sorry that was a typo, should be "exists"

    You will need to adjust the array as per your real data layouts.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-09-2013
    Location
    Poland
    MS-Off Ver
    excel 2007
    Posts
    85

    Re: Scripting Dictionary (working as vlookup) and add calculated columns

    Jindon, thank u very much! Working perfectly - I adjusted the code for working from different workbooks and now i can move on. problem solved!

    Ok i got one problem :
    Please Login or Register  to view this content.
    In this case a(i,9) and a(i,10) are numbers stored as text (and the case will be that always calculation would be performed on numbers like that because of the automated reports). and for example:
    a(i,9)=12
    a(i,10)=10
    so the dictionary value equals 1210 :D i have no idea is there possibility of simply changing that.
    Thanks!
    Last edited by mumsys; 08-23-2016 at 03:19 AM.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Scripting Dictionary (working as vlookup) and add calculated columns

    You could use Val function to convert it as Double.
    i.e
    Please Login or Register  to view this content.
    And so is the rest...

+ 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] Dictionary or Scripting.Dictionary. Binding Referencing Dim-ing. Sub routines and Function
    By Doc.AElstein in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-12-2016, 08:28 AM
  2. Scripting dictionary help
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2016, 09:32 PM
  3. Scripting dictionary help
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-14-2014, 09:51 AM
  4. need help with scripting dictionary
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-04-2014, 04:33 PM
  5. Scripting Dictionary
    By Tendla in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2013, 05:41 AM
  6. [SOLVED] Scripting Dictionary - CompareMode only partially working...
    By Zoediak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2013, 03:40 PM
  7. [SOLVED] Scripting Dictionary help
    By williams485 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-13-2012, 08:22 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