Results 1 to 3 of 3

Thread: how can i seperate listboxitems?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    12

    how can i seperate listboxitems?

    ok i have got a listbox and there are several items (columns) in it.

    can i seperate them by putting a line between the columns and how does it work if it is possible?

    please help me

    thx, alex

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    12
    does anybody know how to seperate the items in a listbox??

    please help me!

    thx, alex

  3. #3
    New Member
    Join Date
    Feb 2004
    Posts
    8
    I'll help. I have done this recently my self. Try this:

    Start a new work book
    Start the VBA editor
    add a user form named userform1
    to userformform1 add a list box named ListBox1
    add a commandbutton1 to your form.
    copy the following code:

    Private Sub CommandButton1_Click()

    Rem extra CHR(9)'s added to increase the tab.
    B = "Name" & Chr(9) & "Address" & Chr(9) & Chr(9) & "City"
    ListBox1.AddItem B
    Rem I hope this helps

    End Sub

    then double click on the CommandButton1 and paste this code covering all other code.
    hit run
    tell me if its what you wanted. I can make it much more complicated if you need it.
    Good luck!

Posting Permissions

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



Click Here to Expand Forum to Full Width