+ Reply to Thread
Results 1 to 6 of 6

Populate ListBox with data from named range

  1. #1
    Forum Contributor
    Join Date
    10-29-2009
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    125

    Populate ListBox with data from named range

    Hi



    I am trying to write code that will populate my ListBox when a cell, named "FilterCell" changes

    I have a list of companies, named range "Comp", that expands / reduces with whatever value is entered in "FilterCell"



    May I ask for assistance with the code I have written so far -



    Please Login or Register  to view this content.


    Much appreciated!

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Populate ListBox with data from named range

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    10-29-2009
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Populate ListBox with data from named range

    Hiya Bernie

    Thanks so much for the reply and pointing me in the right direction!

    After a little trial and error manage to get it to work, see my code below

    Please Login or Register  to view this content.
    Many thanks again!

  4. #4
    Forum Contributor
    Join Date
    10-29-2009
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Populate ListBox with data from named range

    Hi

    Out of interest is there a way to change part of the code at ...
    Please Login or Register  to view this content.
    Down to 1 x line, by removing the "Range" line and amending "Selection"

    Many thanks

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Populate ListBox with data from named range

    Typically, you can remove ".Select <LF> Selection" and still have usable code:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    10-29-2009
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Populate ListBox with data from named range

    Perfect -Thank you !

+ 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. Populate ListBox with Filtered Range
    By smartbuyer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2015, 01:09 AM
  2. HELP: Populate Worksheet ActiveX listbox using Named Range
    By nori79 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-20-2015, 09:25 AM
  3. dependent listbox with named range
    By rayexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2014, 12:08 PM
  4. Populate a listbox from range
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-05-2014, 09:24 AM
  5. [SOLVED] Dynamic Named Range to Auto-Populate another range based on criteria
    By BeachRock in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-24-2014, 06:46 PM
  6. [SOLVED] Used named range in listbox on userform
    By WilliamWu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2013, 08:04 AM
  7. how to populate listbox with named range
    By kmsoni in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2011, 04:14 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