• Listbox control Userform (2002 xp)

    Author
    Topic
    #456898

    Hi all,

    Can some one tell me is there a way to expand a listbox pick, normally, it’s one line of for each item in the listbox, but is there a way to have an item that is more than one entry, the item could be multiple?

    Thanks, Darryl

    Viewing 2 reply threads
    Author
    Replies
    • #1143539

      Do you mean something along the lines of the following:
      Birds
      Fish
      Insects
      Mammals
      Bipeds
      Quadrupeds
      Weapons

    • #1143544

      Perhaps something like

      Private Sub ListBox1_Click()
          With Me.ListBox1
              If .ListIndex = 1 Then .ListIndex = 3
          End With
      End Sub
    • #1143585

      Do you mean a treeview, such as the left hand pane of Windows Explorer?

      • #1143674

        Hey guys,

        Thanks for your replies,

        I think what I mean is if you are using a listbox to illustrate Text say 50 characters, and you only have room for 10 characters per list item is there another way of parsing the string and or adding it as an item ? Should I just use a textbox control with the multiline property?

        Thanks,
        Darryl.

        • #1143711

          You can increase the column width; this enables the user to see the entire entry by using the horizontal scroll bar. (Of course, if there is enough room. you should increase the width of the list box.)

    Viewing 2 reply threads
    Reply To: Listbox control Userform (2002 xp)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: