Results 1 to 3 of 3

Thread: Load Combo From Listbox?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    414

    Load Combo From Listbox?

    I'm having problems loading everything from a listbox to a combobox. Example is loading List1 into Combo1. All I can get is the first item.
    Thanks in advance.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. Dim i As Long
    2. For i = 0 To List1.ListCount - 1
    3.       Combo1.Additem List1.List(i)
    4. Next

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    414

    Thanks

    Thank you very much. I can see now I was trying to make it more diffucult than it had to be.

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