+ Reply to Thread
Results 1 to 4 of 4

Pre-load listbox selections only loading 1 selection

  1. #1
    Forum Contributor
    Join Date
    05-24-2006
    Location
    Los Angeles
    MS-Off Ver
    2019
    Posts
    328

    Pre-load listbox selections only loading 1 selection

    Hi,

    I've created a simple listbox on a userform that loads the prior selections from the last time the userform was used (thanks Leith Ross!). Problem is that not all the prior selections are pre-loaded; only one is.

    I think the problem is the userform activation code triggers the listbox change code that contains a line that clears the listbox content, because when I remark it out, the pre-selections load perfectly (but then the listbox will not function properly). I've bolded that line in the code below, and the file itself is also included.

    Please Login or Register  to view this content.
    Leith's original posting is here: http://www.excelforum.com/excel-prog...-in-range.html

    Thanks,

    Lawrence
    Attached Files Attached Files
    Last edited by skysurfer; 10-12-2010 at 05:07 PM.

  2. #2
    Forum Contributor
    Join Date
    05-24-2006
    Location
    Los Angeles
    MS-Off Ver
    2019
    Posts
    328

    Re: Pre-load listbox selections only loading 1 selection

    Good morning,

    Just bumping this up for the early birds.

    ~L

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Pre-load listbox selections only loading 1 selection

    Hello Lawrence,

    I am working on your problem. If I understand correctly what you want to do with this code, it can be simplified using a few tricks. I'll post the corrected workbook later on.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor
    Join Date
    05-24-2006
    Location
    Los Angeles
    MS-Off Ver
    2019
    Posts
    328

    Re: Pre-load listbox selections only loading 1 selection

    Thanks!

    Lawrence

+ 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