+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP using VBA to auto fetch data

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    VLOOKUP using VBA to auto fetch data

    Dear All,

    I am having one Tracking sheet for recording data. I want to fetch some values/ data from other worksheet for some columns.

    Identifying ‘Request ID’ particular cells should auto fetch data from other worksheets.

    Request ID is one unique number. Therefore, it will lookup the Request ID in another worksheet & gets related cell data it in master database.

    I have tried VLOOKUP for this and this is giving correct outcome.

    However due to ample number (7000) of rows, while saving it goes to "Not responding" mode.

    So can you please give some VBA code so that I can fetch the values for specific columns/ cells.


    e.g.
    =VLOOKUP(A3,Publisher!$A$3:$M$1048576,11,0)

    A3 = Request ID
    Publisher!$A$3:$M$1048576 = table_array from Publisher TAB


    Best Regards,
    Rahul
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: VLOOKUP using VBA to auto fetch data

    HI Rahul,

    welcome to the forum.
    Instead of giving full range "$A$3:$M$1048576", you can use defined name which will auto expand as per data increase.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    04-26-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VLOOKUP using VBA to auto fetch data

    Thank you DILIP. That would surely help but I don't know VBA.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: VLOOKUP using VBA to auto fetch data

    Hi RahulM,

    No need of VBA here.. just press ctrl + F3 and you'll see name manager where you can define dynamic name which will increase the range reference as per data.

    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Registered User
    Join Date
    04-26-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VLOOKUP using VBA to auto fetch data

    Dear DILIP,

    Thank you for help. It does work. Have already used for data validation field.
    However I want to automate using VBA because due to ample number of rows (more that 7000 of rows some time), while saving this file it goes to "Not responding" mode. Believe, using VBA will help resolve this issue.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: VLOOKUP using VBA to auto fetch data

    Not sure.. but you can go ahead


    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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