+ Reply to Thread
Results 1 to 3 of 3

Index/match vba code

  1. #1
    Registered User
    Join Date
    04-28-2016
    Location
    London
    MS-Off Ver
    2007
    Posts
    48

    Index/match vba code

    Hello,

    Wondered if anyone could help. I wanted to convert the following formula into VBA code but I think I may done something wrong.


    FORMULA:

    =INDEX('PPG DATASHEET'!$J$2:$J$30000,MATCH($D$1,'PPG DATASHEET'!$B$2:$B$30000,0))


    VBA CODE
    Please Login or Register  to view this content.
    The value I am trying to match instead of cells D1 is in txtMDMCode.Value.

    Appreciate the help

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Index/match vba code


    Hi !

    Use Evaluate method …

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Index/match vba code

    Try this code
    Please Login or Register  to view this content.
    Or
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 03-16-2017 at 10:41 AM.

+ 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] index match to concatenate using UDF code
    By score in forum Excel General
    Replies: 5
    Last Post: 08-16-2016, 09:41 AM
  2. Vlookup code to Index/Match code help
    By dubcap01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2015, 07:05 PM
  3. Index/Match formula into VBA code
    By Justmegan93 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2015, 05:18 AM
  4. Index & Match VBA Code
    By OcMac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2012, 12:28 PM
  5. [SOLVED] VBA Code to Match Index Array
    By GeorgeIoak in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-03-2012, 07:21 PM
  6. INDEX/MATCH style VBA code
    By albatross32 in forum Excel General
    Replies: 7
    Last Post: 08-18-2011, 05:25 PM
  7. Index/Match-corresponding zip code in column
    By mikera in forum Excel General
    Replies: 2
    Last Post: 02-26-2010, 02:58 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