Results 1 to 5 of 5
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    peraphs i am stupid vlookup erro (2000 sr 1)

    stiil on old question....
    ULTIMA = Sheets("GRUPPO").Cells(65536, 2).End(xlUp).Row '+ 1

    Why error 1004 "impossible to find.... for class range WorksheetFunction.."

    DESCR = Application.WorksheetFunction.VLookup(TIP_SOSP, Worksheets("GRUPPO").Range("B2:C" & ULTIMA), 2, False)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: peraphs i am stupid vlookup erro (2000 sr 1)

    The code itself is OK, so the error means that the value TIP_SOSP has not been found, or it is not of the correct type.

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: peraphs i am stupid vlookup erro (2000 sr 1)

    ... Hans sorry me...
    I AM SURE A STUPID
    The value not is in table of GRUPPO!
    i have solved with, is correct if value not found?:

    On Error Resume Next
    DESCR = Application.WorksheetFunction.VLookup(Val(TIP_SOSP ), Worksheets("GRUPPO").Range("B2:C" & ULTIMA), 2, False)

    If Err.Number = 1004 Then
    DESCR = TIP_SOSP & " - NON TROVATO"
    End If
    On Error GoTo 0

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: peraphs i am stupid vlookup erro (2000 sr 1)

    That looks OK.

  5. #5
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: peraphs i am stupid vlookup erro (2000 sr 1)

    tKS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •