+ Reply to Thread
Results 1 to 4 of 4

Initialise List Box

  1. #1
    Registered User
    Join Date
    01-17-2006
    Posts
    21

    Initialise List Box

    Hi,

    On my worksheet I have data in 2 columns. The first column is reserved for a Yes/No entry. The second contains the corresponding data - ie a list of names.

    When initialising a list box on a user form, I wish the code to sort through the list and only add those values that have a corresponding "Yes" value.

    How would I do this??

    Thanks, Simon

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394
    Why don't you load the names into an array using the Yes/No column to determine if it makes the array or not. Then load the listbox based on the array.

    edit: I thought you were talking about VBA. This probably wont work if you are talking about a simple imbedded list box.
    Last edited by Mallycat; 10-29-2006 at 09:50 PM.

  3. #3
    Registered User
    Join Date
    01-17-2006
    Posts
    21
    Thanks, Mallycat,

    I am doing this in VBA and I have the code working now.
    Thanks for your reply.

    Simon

  4. #4
    Forum Contributor
    Join Date
    11-11-2005
    Posts
    267
    For the sake of a fitting closure to the thread:

    Please Login or Register  to view this content.
    Last edited by Myles; 10-30-2006 at 02:20 AM.
    HTH
    Myles

    ...constantly looking for the smoother pebble while the whole ocean of truth lies before me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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