+ Reply to Thread
Results 1 to 4 of 4

Multi-Select ListBox

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Multi-Select ListBox

    I have a multi-select listbox that displays all of my attached documents. A user can then select which ones they want to view, and it should bring up all of the documents selected. Now, this works great except when I have the line bolded in the code, which writes to a worksheet in the Excel file and stores the last time the file was viewed. All it's doing is writing to a cell, but this makes the listbox unselect everything. Any idea why this would happen or an explanation would be appreciated.
    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Re: Multi-Select ListBox

    Anyone else experience this? It appears that no matter where or how I write this, it resets my listbox to all being unselected.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Multi-Select ListBox

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

    I can't see where or what the variables are
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Multi-Select ListBox

    I have no idea what does
    Please Login or Register  to view this content.
    nor what performs
    Please Login or Register  to view this content.
    I think I would prefer:

    Please Login or Register  to view this content.
    But I think it could be done much more efficiently without the 'lookup' sheet.



+ 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