Results 1 to 15 of 15

[SOLVED] Use VBA to use Vlookup across two workbooks

Threaded View

Wraithxiv [SOLVED] Use VBA to use... 10-20-2011, 11:59 AM
arlu1201 Re: Use VBA to use Vlookup... 10-20-2011, 12:32 PM
Wraithxiv Re: Use VBA to use Vlookup... 10-20-2011, 01:07 PM
arlu1201 Re: Use VBA to use Vlookup... 10-20-2011, 02:57 PM
Wraithxiv Re: Use VBA to use Vlookup... 10-20-2011, 03:23 PM
arlu1201 Re: Use VBA to use Vlookup... 10-21-2011, 02:41 AM
Wraithxiv Re: Use VBA to use Vlookup... 10-21-2011, 09:36 AM
arlu1201 Re: Use VBA to use Vlookup... 10-21-2011, 09:41 AM
Wraithxiv Re: Use VBA to use Vlookup... 10-21-2011, 10:01 AM
arlu1201 Re: Use VBA to use Vlookup... 10-21-2011, 10:04 AM
Wraithxiv Re: Use VBA to use Vlookup... 10-21-2011, 10:28 AM
Wraithxiv Re: Use VBA to use Vlookup... 10-21-2011, 02:33 PM
royUK Re: Use VBA to use Vlookup... 10-21-2011, 10:10 AM
arlu1201 Re: Use VBA to use Vlookup... 10-21-2011, 02:39 PM
Wraithxiv Re: Use VBA to use Vlookup... 10-21-2011, 03:00 PM
  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    Bowling Green, KY
    MS-Off Ver
    Excel 2003
    Posts
    37

    [SOLVED] Use VBA to use Vlookup across two workbooks

    I have two separate workbooks, the first has a list of names starting if F2. The second workbook has a list of names starting in A1 to perform the vlookup. What I would like to do is use VBA to create a macro to lookup the names in workbook1 F2 in workbook2 A1 and if a match is found to return "CUS" the working vlookup I used in the sheet looks like:

    The sheet name I used this formula in is call "test".

    Even though this isn't VBA code, I thought I would put it in tags just in case.
    =IF(VLOOKUP(F2, [Book1]Sheet1!$A$1:$A$2224,1,FALSE)=F2,"CUS","")
    If we can convert this to work in VBA that would be great. I have tried putting

    Application.WorksheetFunction. in front of it.

    Thanks in advance!
    Last edited by Wraithxiv; 10-21-2011 at 05:38 PM.

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