Results 1 to 3 of 3

Vlookup from ThisWorkbook

Threaded View

hutch@edge.net Vlookup from ThisWorkbook 09-22-2010, 10:15 AM
romperstomper Re: Vlookup from ThisWorkbook 09-22-2010, 10:16 AM
hutch@edge.net Re: Vlookup from ThisWorkbook 09-22-2010, 10:22 AM
  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Vlookup from ThisWorkbook

    Greetings, Gurus.

    I'm trying to vlookup into a workbook, starting in the selected cell, and lookup in a range in ThisWorkbook, (the workbook containing the macro). For some reason, it always returns a #N/A. I think it's a simple matter of how I have ThisWorkbook referenced, (apostrophe/bracket, or whatever). Here is the code I am trying to use to do a vlookup into 3 consecutive cells across a row:
        Application.DisplayAlerts = False
        ActiveCell.FormulaR1C1 = _
            "=VLOOKUP(RC1,'[ThisWorkbook]BO Response'!C1:C10,8,FALSE)"
        ActiveCell.Offset(0, 1).FormulaR1C1 = _
            "=VLOOKUP(RC1,'[ThisWorkbook]BO Response'!C1:C10,9,FALSE)"
        ActiveCell.Offset(0, 2).FormulaR1C1 = _
            "=VLOOKUP(RC1,'[ThisWorkbook]BO Response'!C1:C10,10,FALSE)"
        Application.DisplayAlerts = True
    Thanks in advance for any help you can offer.
    Last edited by hutch@edge.net; 09-22-2010 at 10:22 AM.

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