+ Reply to Thread
Results 1 to 4 of 4

Items in Userform Listbox are wider than list box. Need to see all character of item

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Items in Userform Listbox are wider than list box. Need to see all character of item

    Hi, I have enclosed a test file to help explain my problem.

    I have a userform that i created. There are two listboxes on the userform.

    I populate the listboxes with values and some of these values are "wider" than the listbox itself.

    Is there something i can do so that the user can see the entire item show in the list box. The items shown in my test example (see enclosed) are wider than the listboxes on the userform...........do i need to add a scroll-right button or something .....

    Any ideas on what to do?
    Attached Files Attached Files
    Last edited by welchs101; 05-09-2012 at 07:06 AM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Items in Userform Listbox are wider than list box. Need to see all character of item

    Hello welchs101,

    I cannot find a way to correct your problem with code, and neither does adding a ScrollBar help. The only way I could solve this one, was to widen the ListBoxes to an anticipated maximum width.

    Hope that helps!
    Attached Files Attached Files
    Last edited by Winon; 05-08-2012 at 09:44 PM. Reason: Erred on spelling
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  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: Items in Userform Listbox are wider than list box. Need to see all character of item

    hello welchs101,

    Set the ColumnWidth property on each ListBox to 640 pt. This should provide you enough horizontal scroll room.
    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
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Items in Userform Listbox are wider than list box. Need to see all character of item

    thanks guys.

    Leith, i decided to go with you suggestion......thanks.

+ 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