+ Reply to Thread
Results 1 to 7 of 7

List Box Clearing on Open

  1. #1
    Forum Contributor Tarball's Avatar
    Join Date
    04-21-2007
    Location
    Atlanta, GA
    Posts
    166

    List Box Clearing on Open

    I have a worksheet with a series of listboxes (with the list option =1 to allow multiselection). These boxes are loaded dynamically (not using the linkedcell method).

    I can load the boxes just fine, and make selections I need. However, even after the workbook is saved, when I close it, then reopen it, the list boxes are cleared. I can actually see the data for a split second in the listboxes before they are cleared.

    I have made sure that I am not using a clear method when the worksheet is opened and I do not have a sheet event to clear them either.

    Any ideas as to why list boxes would automatically clear on open of a workbook? Thanks for the help and ideas.

    I cannot post the workbook as it contains sensitive account information.
    Reach me at excel_help at bellsouth dot net

  2. #2
    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: List Box Clearing on Open

    Hello Tarball,

    What event are you using to load them?
    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!)

  3. #3
    Forum Contributor Tarball's Avatar
    Join Date
    04-21-2007
    Location
    Atlanta, GA
    Posts
    166

    Re: List Box Clearing on Open

    Here is the code. On the sheet, there are 3 regions, each region has 5 list boxes (I know - not the best design but Im stuck with it from a user perspective). Each region has a command button used to load the respective boxes. There is a configuration that allows the user to open the windows file picker to locate the workbook from which to load the accounts. All of this functionality works just fine.

    The problem arises when I save the sheet. Regardless of whether I check or dont check items all of the list boxes clear. As I mentioned before I can see the data for a split second just after the sheet opens.



    Please Login or Register  to view this content.

  4. #4
    Forum Contributor Tarball's Avatar
    Join Date
    04-21-2007
    Location
    Atlanta, GA
    Posts
    166

    Re: List Box Clearing on Open

    Any ideas?

  5. #5
    Registered User
    Join Date
    11-26-2008
    Location
    Michigan, USA
    Posts
    18

    Re: List Box Clearing on Open

    I'm having the same problem with an application I'm working on. Not sure why the listboxes are clearing themselves...

  6. #6
    Registered User
    Join Date
    11-26-2008
    Location
    Michigan, USA
    Posts
    18

    Re: List Box Clearing on Open

    I got mine to work. Tarball, did you leave the "ListFillRange" property blank? As soon as I set that property to a range containing the strings I wanted to populate the ListBox with, the data remains in place after saving and opening the workbook. When I left it blank, the ListBox cleared after opening, just as it was doing for you.

  7. #7
    Registered User
    Join Date
    04-29-2011
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: List Box Clearing on Open

    The problem that I am having is that I am inputting information into a list box from a series of input boxes. When I close the spreadsheet and reopen it all of my entries in the list box are gone. Anyone have any idea how to fix this?

+ 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