VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code allows you to click on a checkbox style list and add all the checked items to another lis

by Kevin Heil (1 Submission)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 7th March 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This code allows you to click on a checkbox style list and add all the checked items to another listbox, or array. Does not need command

Rate This code allows you to click on a checkbox style list and add all the checked items to another lis



List2.Clear
For i = 0 To List1.ListCount - 1
    If List1.Selected(i) = True Then
        List2.AddItem List1.List(i)
    End If
Next i
End Sub


Download this snippet    Add to My Saved Code

This code allows you to click on a checkbox style list and add all the checked items to another lis Comments

No comments have been posted about This code allows you to click on a checkbox style list and add all the checked items to another lis. Why not be the first to post a comment about This code allows you to click on a checkbox style list and add all the checked items to another lis.

Post your comment

Subject:
Message:
0/1000 characters