+ Reply to Thread
Results 1 to 3 of 3

List box not populating with all information

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    Annan, Scotland
    MS-Off Ver
    2010
    Posts
    17

    List box not populating with all information

    I have this current code which works find up to the ConveyorPickingCheck.value part - it populates this information but nothing beyond this?

    i'm maybe missing something simple but very frustrating, any info would be great

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: List box not populating with all information

    Hard to say without more details.

    One thing to note is if a ListBox1 column doesn't contain exactly "Yes" or "No" (case sensitive and no trailing spaces or extra characters), then the .Values are not set. With your If-ElseIf code, all these would not result in a True or False:
    "yes", "NO", "Yes ", "n"

    You could use this instead of If-ElseIf...
    ToteLaunchCheck.Value = LCase(Trim(ListBox1.List(r, 2))) = "yes"
    This returns True if it equals Yes and False if it is not Yes. It's not case sensitive and trims any spaces.

  3. #3
    Registered User
    Join Date
    03-15-2013
    Location
    Annan, Scotland
    MS-Off Ver
    2010
    Posts
    17

    Re: List box not populating with all information

    I'll give that a shot, thanks, all those if else if did seem a bit bulky aswell

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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