+ Reply to Thread
Results 1 to 2 of 2

replace vlookup with vba

  1. #1
    Registered User
    Join Date
    12-04-2014
    Location
    texas
    MS-Off Ver
    2010
    Posts
    47

    replace vlookup with vba

    hi I was able to complete a workbook thanks largely to thisd forum. what im trying to do now is to replace all vlookups with a vba to increase processer speed and further automate its design. I do not know how to use vba at all and would like the simplest terms possible.

    sheet a_____________________sheet b
    __A________B_________________A______B
    adam______?________________david___17
    david______?________________adam___18
    gary_______?________________gary____20

    using vlookup question marks are their equivalent ages. I want those values to come from sheet b to sheet a automatically with vba. the sheet values are much longer and the range is vastly more extensive but I think this will be a good starting point. please answer me simply as possible so that I may follow
    Last edited by SSJAMES18; 01-16-2015 at 09:40 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: replace vlookup with vba

    Quote Originally Posted by SSJAMES18 View Post
    hi I was able to complete a workbook thanks largely to thisd forum. what im trying to do now is to replace all vlookups with a vba to increase processer speed and further automate its design.
    Hi,

    You are mistaken if you believe writing VBA code to replicate standard functionality will be quicker than using standard Excel functions like VLOOKUP(). It won't, it will be slower and if looping over large ranges is involved very slow.

    If your VLOOKUP is working then the smartest way to proceed to automate the system is to get VBA to write the VLOOKUP in the sheet and copy it as necessary. e.g.

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Replies: 3
    Last Post: 07-10-2014, 10:56 AM
  2. [SOLVED] VLOOKUP with REPLACE Function
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2012, 09:17 AM
  3. replace string and add value using vlookup
    By isabella in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2010, 02:53 AM
  4. [SOLVED] How do I replace a return value of #N/A in a vlookup with zero?
    By marketingman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-28-2005, 05:05 PM
  5. [SOLVED] When VLOOKUP returns a #N/A How can you get it to replace #N/A wi.
    By Cmatise in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-11-2005, 09: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