+ Reply to Thread
Results 1 to 4 of 4

WorkSheet Selection Change and Vlookup

  1. #1
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    WorkSheet Selection Change and Vlookup

    I have a sheet (Sheet1) that has a product code entered, Column C.
    The product description is in the same sheet in Column D.

    I set up a sheet to manually enter the product codes and their descriptions ( Product Codes).
    Column A is the Product Codes, and Column B the Descriptions.

    If I enter an Product code into Sheet1 Column C, and there is an already entered Product Code in the product code sheet along with a description, I want the description to display after exiting the sheet1 product code in Column D.
    I cannot formulate the cells, as not 100% codes are manually entered, and the user needs to sometimes manually enter both the code and he description.
    What code would be best to accomplish this?
    Attached Files Attached Files

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: WorkSheet Selection Change and Vlookup

    Try this..

    Right click Sheet Name, in Sheet Tab,
    Select View Code,.. and paste below code there..

    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Re: WorkSheet Selection Change and Vlookup

    Thanks for the reply, the code seems pretty straight forward to analyse, but i cannot get it to work.
    I get no errors, but no result also for some reason.
    Tried ensuring events were enabled, but did nothing also.

    Sheet name is identical.
    Range is good.
    Target column is correct.
    ??

  4. #4
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Re: WorkSheet Selection Change and Vlookup

    Fixed with:
    Please Login or Register  to view this content.
    Needed to include 'WorkSheet Function' to get it to work.
    Also had to add error trap if user enters an unmatching code, to allow for manual entering of description.

+ 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] Highlight Row of Active Cell on Worksheet Selection Change
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2012, 02:23 AM
  2. [SOLVED] Worksheet Change Event - Multiple Cell Selection
    By mojo249 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2012, 08:30 PM
  3. [SOLVED] Change Worksheet based on ComboBox selection
    By dagindi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-15-2012, 10:19 AM
  4. Worksheet selection change
    By sigfreid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2011, 06:16 AM
  5. Worksheet Selection Change event not firing??
    By Simon Lloyd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 10:29 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