+ Reply to Thread
Results 1 to 6 of 6

Show unique values in listbox and activate related cell if i select value in Listbox

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,078

    Post Show unique values in listbox and activate related cell if i select value in Listbox

    hi,
    i am populating my listbox to show unique values of sheets("sheet1").Range("f10:f1000")
    Please Login or Register  to view this content.
    I Want to activate the cell with the value of listbox item which one i select,

    for example i select the listbox's value 378 then activate the cell f17
    and
    if i select 386 then select the cell f22,,,,

    note:- select always first value of unique data

    thank you
    Attached Files Attached Files
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Show unique values in listbox and activate related cell if i select value in Listbox

    One way would be
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,078

    Re: Show unique values in listbox and activate related cell if i select value in Listbox

    Thank you for the reply
    its saying
    run time error 94
    Invalid Use Of Null

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Show unique values in listbox and activate related cell if i select value in Listbox

    It works for me with your workbook.

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,078

    Re: Show unique values in listbox and activate related cell if i select value in Listbox

    Please Login or Register  to view this content.
    i changed it to Listbox1.click

    and its working well

    but its selecting the last value, while i need to select the first unique value

    when i select 187 in listbox then its selecting c31 while it has no value
    thank you

  6. #6
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,078

    Re: Show unique values in listbox and activate related cell if i select value in Listbox

    Yes
    its working very well

    thank you very very much

+ 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. Show dynamic values at listbox depending value selected another listbox
    By Judith_Chao in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2017, 08:30 AM
  2. [SOLVED] Unhide 2nd Listbox when condition is met in the 1st multi-select listbox
    By pjbassdc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2015, 09:58 AM
  3. [SOLVED] if anything in listbox select first item, if listbox empty do nothing (listbox in userform
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2015, 12:49 PM
  4. Listbox Selection True for Certain Values on Activate
    By jvbeats in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2012, 03:25 PM
  5. Activate Row on ListBox Select
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-15-2012, 03:16 PM
  6. UserForm;Listbox Select Show Picture
    By samsara in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-08-2009, 09:48 AM
  7. Replies: 4
    Last Post: 07-19-2006, 01:10 PM

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