Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Aug 2001
    Thanked 0 Times in 0 Posts

    Tool tips in listbox (Word 97 Sr2)


    I have a listbox within a user form in Word. The listbox contains a list of all documents saved in a folder, based on where the template of the current document is stored. The document names can be of any length. Some of the document names are longer than my listbox is wide.
    Can anyone tell me if there is a way to show hover text, or ControlTipText, displaying the full value of the row of the listbox the mouse has selected, or even better, the row that the mouse is hovering over?

    Many thanks in advance,

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Dublin, Ireland, Republic of
    Thanked 0 Times in 0 Posts

    Re: Tool tips in listbox (Word 97 Sr2)

    You could try something like <pre> ListBox1.ControlTipText = ListBox1.Text</pre>

    in the UserForm_Activate event and in the ListBox1_Change event

    However it will not change as you hover th emouse over different items in the list box. I suspect an API call would be required for that.

    Andrew C

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts