+ Reply to Thread
Results 1 to 3 of 3

Add list of items from named range "Comp" to ListBox1

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

    Add list of items from named range "Comp" to ListBox1

    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 Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Add list of items from named range "Comp" to ListBox1

    Try this...

    Please Login or Register  to view this content.
    Though I don't fully understand. If the ListFillRange is assigned to a named range, then whenever the named range changes, the list will automatically update. So I don't think you would need this code. As it always assigns the same named range to the listbox.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Add list of items from named range "Comp" to ListBox1

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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. Moving 30 days and older messages from "Sent Items" to "Deleted Items"
    By bandera in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2014, 07:09 AM
  2. How to use named ranges in VBA code using "Columns" and a variation on "Range"
    By haljam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2014, 02:48 PM
  3. With ListBox1 .AddItem "dog" .List(.ListCount - 1, 1) = "cat"
    By sohaila in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2014, 09:06 AM
  4. Named Range = "CountryA" OR "CountryB"
    By f0urchette in forum Excel General
    Replies: 0
    Last Post: 03-05-2012, 04:20 AM
  5. Replies: 3
    Last Post: 06-04-2011, 10:56 AM
  6. Replies: 9
    Last Post: 05-24-2005, 06:32 AM
  7. [SOLVED] Modify "pick from list" to read named range
    By N E Body in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2005, 06:06 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