+ Reply to Thread
Results 1 to 3 of 3

Vlookup property error?

  1. #1
    Forum Contributor
    Join Date
    09-12-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    127

    Vlookup property error?

    Does anyone know how to get this expression to work when the first digit is numeric (for the lookup value)? it works fine on everything that is a alpha char but stops at anything that looks like a number. The result is a Run-time error '1004' , Unable to get the VLookup property of the WorksheetFunction class

    Found.Offset(, 0).Value = WorksheetFunction.VLookup(Left(Found.Offset(, 1), 2), Rng1, 2, True)

    thanks in advance, s4

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Vlookup property error?

    Left is the Text function which converts Numeric data as Text so try like this...

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    09-12-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    127

    Re: Vlookup property error?

    I'm still getting the same error message, It works fine until it comes to a value the contains a number as the first character in the cell, ie. 3M, 1S.

    macro stop on same line yet.

    Found.Offset(, 0).Value = WorksheetFunction.VLookup(vLkpValue, Rng1, 2, True)

+ 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