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

    Vlookup.... (2000 sr 1)

    Hans i use with success your MEGA command to find into a vlookup...

    But i have a problem, when the command line find a blank value into column D ( Range("D" & Trim(CStr(n))), ) it go in error...

    Elenco.Range("S" & Trim(CStr(n))).Value = Application.WorksheetFunction.VLookup(Range("D" & Trim(CStr(n))), _
    Worksheets("ABICAB").Range(Worksheets("ABICAB").Ra nge("C2"), Worksheets("ABICAB").Range("D65536").End(xlUp)), 2, False)

    how to resolve this?

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

    Re: Vlookup.... (2000 sr 1)

    You can test for a blank value:

    If Not Range("D" & Trim(CStr(n))) = "" Then
    Elenco...
    End If

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

    Re: Vlookup.... (2000 sr 1)

    Good!

Posting Permissions

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