+ Reply to Thread
Results 1 to 6 of 6

show row source data in listboxes

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    show row source data in listboxes

    Hi,

    I have used a userform found on this forum (I cannot find the link) that displays row data from a range within a listbox. Unfortunately though you cannot determine the column width. As such I wondered if it was possible to show the data within other listboxes. So for example in listbox1 you can see 5 columns accross (from a range) however one of them is very wide.

    Looking at Listbox1 you can only see the firsy 20 characters approximately in each column. Is it possible therefore that once this row of data is selected that the contents of the columns is duplicated in other listboxes on the same userform that can be expanded to accommodate larger text?

    I have enclosed a userform with what I have done thus far. Any help would be greatly appreciated. Thank you in advance.
    Attached Files Attached Files
    Last edited by jpruffle; 06-03-2009 at 06:31 AM.

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

    Re: show row source data in listboxes

    Why not just change the column width of the listbox?
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Re: show row source data in listboxes

    Thank you for the quick reply. Firstly because I do not know how to define the width of the columns that are displayed within the listbox. But secondly it would make it easier for the end user to see. In my form that I have created the two columns are for notes and can run to 100 words plus. Ideal for another listbox but not for being displayed as a long column.

    I don't know if I make any sense but I hope that explains why.

  4. #4
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Re: show row source data in listboxes

    Hi,

    I have amended the form to make it a little easier to explain what I am looking for. Please can someone take a look and try to advise?

    Thank you in advance.
    Attached Files Attached Files

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

    Re: show row source data in listboxes

    This example has code to do that. Look at the ListBox1_Click event

    FilterForm.zip

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Re: show row source data in listboxes

    Thank you very much Roy. I managed to work it into my form perfectly.

+ 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