+ Reply to Thread
Results 1 to 6 of 6

ToolTip for listbox selected item

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    ToolTip for listbox selected item

    Hi,

    In a multicolumn listbox in userform, I have a long string in third column,unable to adust/show full text. Is there a way to display full text of selcted item's column 3 value like tootiptext.

    Or any smart way to display that long text to user
    Teach me Excel VBA

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,247

    Re: ToolTip for listbox selected item

    How long is the text at most? A couple of hundred characters? A thousand? More?

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: ToolTip for listbox selected item

    Thanks rorya for review

    I calculated the length of the text for the some random files in specific column. The MAX of those lengths is 428 characters.
    Last edited by ImranBhatti; 07-19-2018 at 03:27 AM.

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: ToolTip for listbox selected item

    And yes the upcoming files may contain more so the average length of the text is pretty sure = 500 characters

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,247

    Re: ToolTip for listbox selected item

    I don't think, from memory, that you can put more than 255 characters into the tool tip, so I'd suggest using an additional control (e.g. a label) on the form that shows the data from that column as you select an item - assuming the listbox is not multiselect?

  6. #6
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: ToolTip for listbox selected item

    Quote Originally Posted by rorya View Post
    I'd suggest using an additional control (e.g. a label) on the form that shows the data from that column as you select an item - assuming the listbox is not multiselect?
    Why it did not come to my mind?
    Good idea

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Do something for each selected item in a listbox
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2017, 06:38 AM
  2. Filter using Listbox selected item(s)
    By dgbunny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2016, 09:17 AM
  3. Get the name of a listbox where an item is selected
    By Jerbinator in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-22-2016, 03:16 PM
  4. Listbox item Highlighted but not Selected
    By shawnvw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-17-2015, 05:29 PM
  5. Selected item in first listbox.
    By waka in forum Access Tables & Databases
    Replies: 1
    Last Post: 02-09-2015, 11:45 PM
  6. [SOLVED] Selected Listbox Item to Textbox
    By TheRobsterUK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2014, 04:07 PM
  7. Remove selected item from listbox
    By ChrisMattock in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-28-2014, 08:36 AM

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