+ Reply to Thread
Results 1 to 3 of 3

Vlookup between value selected in

  1. #1
    Registered User
    Join Date
    12-17-2014
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    2010
    Posts
    23

    Vlookup between value selected in

    Hi Team, I have one userform in one workbook (called here wbWorkbook1) in which I have a listbox (called here lstGroup7), everytime the user selects one value from it and click on commad button cmdOK, Excel must perform a VLOOKUP with a range (rngWB2) on another workbook (here called wbWorkbook2) and paste on the selected cell from (wbWorkbook1) the value on the left cell from the found value (see table example below). I have pasted below the code I have written and indicate the line where it errors out. Could anyone please advise what I am doing wrong?

    B1 VALUE 1
    B2 VALUE 2
    B3 VALUE 3
    this range is in wbWorkbook2.worksheets("sheet1") in case "value 2" is selected in the ListBox, "B2"is to pasted in the activecell from (wbWorkbook1)

    Please Login or Register  to view this content.
    Last edited by ElianaMG; 01-08-2015 at 02:29 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vlookup between value selected in

    Hi,
    Unfortunately your post does not comply with Rule 3 of our Forum
    RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-17-2014
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    2010
    Posts
    23

    Re: Vlookup between value selected in

    Sorry, my mistake. Post corrected and I will pay more attention hence forward

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Vlookup Selected cell
    By cajand in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2014, 08:15 PM
  2. [SOLVED] Match, vlookup and capturing selected results. Help!
    By GinaBlue in forum Excel General
    Replies: 4
    Last Post: 07-11-2012, 03:40 PM
  3. Using selected cell instead of typing input into vlookup?
    By RWheldon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-26-2009, 10:40 AM
  4. vlookup to stay blank if nothing selected
    By stevesunfold in forum Excel General
    Replies: 8
    Last Post: 11-23-2008, 08:50 AM
  5. vlookup formula to get price when product is selected
    By curly88 in forum Excel General
    Replies: 2
    Last Post: 09-28-2006, 03:01 AM

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