Consulting

Results 1 to 4 of 4

Thread: vlookup help needed

  1. #1

    Unhappy vlookup help needed

    hey to everyone

    i need your help!!!!

    i have a running macro that give the user to enter a customer number and copy it to the less row in another table
    now i want that the macro will give the coulm next to it a vlookup to find the name of the customer from another table in a diffrent sheet.
    for exmple - it put the given number in cell a541 and i want it to give the vlookup in cel b541

    plz help me!!!
    raz

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Lookup where, look into which column?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Quote Originally Posted by xld View Post
    Lookup where, look into which column?
    i ment vlookup function

    as i said...
    my macro takes the enterd number and copy it to the last row in a table.
    for exmple - to cell a540
    now i want to put a vlookup to cell b540 refering to the number from cell a540 and regerding to a table in sheet1 cells a1 to c700

  4. #4
    You'll want something like this.

    Range("B" & Rows.Count).End(xlUp).Offset(1, 0).Value = WorksheetFunction.VLookup(Range("A" & Rows.Count).End(xlUp).Value, Sheets("Sheet1").Range("A1:C700"), 2, 0)
    Amend accordingly.

Tags for this Thread

Posting Permissions

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