+ Reply to Thread
Results 1 to 3 of 3

VBA vlookup to last row error

  1. #1
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    VBA vlookup to last row error

    I am hoping this is fairly simple, but I have never used the last row in a vlookup before. I have the below code:

    Please Login or Register  to view this content.
    but it results in a 'Application-defined or object-defined error'

    When I hover over lRow1 it shows the row number, so I know this is defined correctly. Can anyone assist with this?

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: VBA vlookup to last row error

    you are mixing RC[-1] format with P$11 format

    if you want to use RC format use .FormulaR1C1 not .Formula and use it for the whole formula
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  3. #3
    Forum Contributor
    Join Date
    10-12-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016 in 2024
    Posts
    857

    Re: VBA vlookup to last row error

    thanks Scottie, that works

+ 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] VBA Error 13 Mismatch Error on Vlookup
    By jomzvelasco in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2019, 11:14 PM
  2. [SOLVED] Vlookup Error - unable to get the vlookup property of the worksheetfunction class
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2019, 02:59 PM
  3. Error thrown by VLookup when not an error
    By mms in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2019, 10:25 AM
  4. [SOLVED] application vlookup error runtime error 1004, unable to get the vlookup property of the.."
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 12-05-2018, 12:03 PM
  5. Concatenate error across 2 worksheets with vlookup error
    By COGICPENNY in forum Excel General
    Replies: 2
    Last Post: 11-30-2015, 07:56 PM
  6. How to error trap a vlookup that returns an error or #N/A
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2013, 12:01 PM
  7. [SOLVED] lookup - if(is error(vlookup and error messages meanings
    By grphillips in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-18-2013, 07:03 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