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

    Change range in vlookup (2000 sr 1)

    assuming i hjave this line to make a vlookup, ho to change the reference assuming the table of vlookup is in the active sheet and not in other sheet TABELLA?
    Me.TextBox13.Value = Application.WorksheetFunction.VLookup(USER, Worksheets("TABELLA").Range(Worksheets("TABELLA"). Range("O1"), Worksheets("TABELLA").Range("P3")), 2, False)

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

    Re: Change range in vlookup (2000 sr 1)

    You have more or less answered your own question: change Worksheets("TABELLA") to ActiveSheet.

Posting Permissions

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